Changes in src/ControlStruct/LabelFixer.cc [0a0a65b:1869adf]
- File:
-
- 1 edited
-
src/ControlStruct/LabelFixer.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/LabelFixer.cc
r0a0a65b r1869adf 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Ju l 08 12:36:46201513 // Update Count : 14 512 // Last Modified On : Wed Jun 24 16:24:34 2015 13 // Update Count : 141 14 14 // 15 15 … … 61 61 62 62 void LabelFixer::visit( FunctionDecl *functionDecl ) { 63 // need to go into a nested function in a fresh state64 std::map < Label, Entry *> oldLabelTable = labelTable;65 labelTable.clear();66 67 63 maybeAccept( functionDecl->get_statements(), *this ); 68 64 69 65 MLEMutator mlemut( resolveJumps(), generator ); 70 66 functionDecl->acceptMutator( mlemut ); 71 72 // and remember the outer function's labels when73 // returning to it74 labelTable = oldLabelTable;75 67 } 76 68
Note:
See TracChangeset
for help on using the changeset viewer.