Changes in src/ControlStruct/Mutate.cc [a16764a6:25fcb84]
- File:
-
- 1 edited
-
src/ControlStruct/Mutate.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/Mutate.cc
ra16764a6 r25fcb84 27 27 #include "SynTree/Visitor.h" // for acceptAll 28 28 29 using namespace std; 29 namespace ControlStruct { 30 void fixLabels( std::list< Declaration * > & translationUnit ) { 31 PassVisitor<LabelFixer> lfix; 32 acceptAll( translationUnit, lfix ); 33 } 30 34 31 namespace ControlStruct { 32 void mutate( std::list< Declaration * > translationUnit ) { 33 // hoist initialization out of for statements 35 void hoistControlDecls( std::list< Declaration * > & translationUnit ) { 34 36 PassVisitor<ForExprMutator> formut; 35 36 // normalizes label definitions and generates multi-level exit labels37 PassVisitor<LabelFixer> lfix;38 39 37 mutateAll( translationUnit, formut ); 40 acceptAll( translationUnit, lfix );41 38 } 42 39 } // namespace CodeGen
Note:
See TracChangeset
for help on using the changeset viewer.