Changeset f87408e for src/Parser/StatementNode.cc
- Timestamp:
- Aug 22, 2016, 3:32:07 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, 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:
- 79970ed
- Parents:
- e85a8631 (diff), bd9f8be (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
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/StatementNode.cc
re85a8631 rf87408e 10 10 // Created On : Sat May 16 14:59:41 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Aug 15 20:47:11201613 // Update Count : 32 212 // Last Modified On : Sun Aug 21 11:59:37 2016 13 // Update Count : 325 14 14 // 15 15 … … 137 137 } 138 138 139 Statement *build_branch( std::string identifier, BranchStmt::Type kind ) { 140 return new BranchStmt( noLabels, identifier, kind ); 139 Statement *build_branch( BranchStmt::Type kind ) { 140 Statement * ret = new BranchStmt( noLabels, "", kind ); 141 return ret; 142 } 143 Statement *build_branch( std::string *identifier, BranchStmt::Type kind ) { 144 Statement * ret = new BranchStmt( noLabels, *identifier, kind ); 145 delete identifier; // allocated by lexer 146 return ret; 141 147 } 142 148 Statement *build_computedgoto( ExpressionNode *ctl ) {
Note: See TracChangeset
for help on using the changeset viewer.