Changeset a073d46 for src/Parser/DeclarationNode.cc
- Timestamp:
- Feb 9, 2017, 5:31:49 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 132fad4
- Parents:
- 9e45e46 (diff), e994912 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/Parser/DeclarationNode.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r9e45e46 ra073d46 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Feb 6 16:01:29201713 // Update Count : 7 3912 // Last Modified On : Thu Feb 9 14:48:40 2017 13 // Update Count : 741 14 14 // 15 15 … … 56 56 asmName( nullptr ), 57 57 initializer( nullptr ), 58 extension( false ) { 58 extension( false ), 59 asmStmt( nullptr ) { 59 60 60 61 // variable.name = nullptr; … … 77 78 delete type; 78 79 delete bitfieldWidth; 80 81 delete asmStmt; 79 82 // asmName, no delete, passed to next stage 80 83 delete initializer; … … 98 101 newnode->initializer = maybeClone( initializer ); 99 102 newnode->extension = extension; 103 newnode->asmStmt = maybeClone( asmStmt ); 100 104 newnode->error = error; 101 105 … … 411 415 newnode->attributes.push_back( new Attribute( *name, exprs ) ); 412 416 delete name; 417 return newnode; 418 } 419 420 DeclarationNode * DeclarationNode::newAsmStmt( StatementNode * stmt ) { 421 DeclarationNode * newnode = new DeclarationNode; 422 newnode->asmStmt = stmt; 413 423 return newnode; 414 424 } … … 980 990 Declaration * DeclarationNode::build() const { 981 991 if ( ! error.empty() ) throw SemanticError( error + " in declaration of ", this ); 992 993 if ( asmStmt ) { 994 return new AsmDecl( safe_dynamic_cast<AsmStmt *>( asmStmt->build() ) ); 995 } // if 982 996 983 997 // if ( variable.name ) {
Note:
See TracChangeset
for help on using the changeset viewer.