Changeset 0a0a65b for src/ControlStruct
- Timestamp:
- Jul 8, 2015, 1:37:28 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- cc79d97
- Parents:
- 8686f31
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/LabelFixer.cc
r8686f31 r0a0a65b 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Ju n 24 16:24:34201513 // Update Count : 14 112 // Last Modified On : Wed Jul 08 12:36:46 2015 13 // Update Count : 145 14 14 // 15 15 … … 61 61 62 62 void LabelFixer::visit( FunctionDecl *functionDecl ) { 63 // need to go into a nested function in a fresh state 64 std::map < Label, Entry *> oldLabelTable = labelTable; 65 labelTable.clear(); 66 63 67 maybeAccept( functionDecl->get_statements(), *this ); 64 68 65 69 MLEMutator mlemut( resolveJumps(), generator ); 66 70 functionDecl->acceptMutator( mlemut ); 71 72 // and remember the outer function's labels when 73 // returning to it 74 labelTable = oldLabelTable; 67 75 } 68 76
Note: See TracChangeset
for help on using the changeset viewer.