Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/Mutate.cc

    r25fcb84 ra16764a6  
    2727#include "SynTree/Visitor.h"       // for acceptAll
    2828
     29using namespace std;
     30
    2931namespace ControlStruct {
    30         void fixLabels( std::list< Declaration * > & translationUnit ) {
     32        void mutate( std::list< Declaration * > translationUnit ) {
     33                // hoist initialization out of for statements
     34                PassVisitor<ForExprMutator> formut;
     35
     36                // normalizes label definitions and generates multi-level exit labels
    3137                PassVisitor<LabelFixer> lfix;
     38
     39                mutateAll( translationUnit, formut );
    3240                acceptAll( translationUnit, lfix );
    33         }
    34 
    35         void hoistControlDecls( std::list< Declaration * > & translationUnit ) {
    36                 PassVisitor<ForExprMutator> formut;
    37                 mutateAll( translationUnit, formut );
    3841        }
    3942} // namespace CodeGen
Note: See TracChangeset for help on using the changeset viewer.