Changeset d9a0e76 for translator/ControlStruct/Mutate.cc
- Timestamp:
- Dec 16, 2014, 9:41:50 PM (9 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:
- 17cd4eb
- Parents:
- 3848e0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/ControlStruct/Mutate.cc
r3848e0e rd9a0e76 20 20 21 21 namespace ControlStruct { 22 void mutate( std::list< Declaration * > translationUnit ) { 23 ChooseMutator chmut; 24 ForExprMutator formut; 25 CaseRangeMutator ranges; // has to run after ChooseMutator 26 LabelFixer lfix; 27 //ExceptMutator exc; 28 LabelTypeChecker lbl; 22 29 23 void mutate( std::list< Declaration * > translationUnit ) 24 { 25 ChooseMutator chmut; 26 ForExprMutator formut; 27 CaseRangeMutator ranges; // has to run after ChooseMutator 28 LabelFixer lfix; 29 //ExceptMutator exc; 30 LabelTypeChecker lbl; 31 32 mutateAll( translationUnit , formut ); 33 acceptAll( translationUnit , lfix ); 34 mutateAll( translationUnit , chmut ); 35 mutateAll( translationUnit , ranges ); 36 //mutateAll( translationUnit , exc ); 37 //acceptAll( translationUnit , lbl ); 38 } 39 30 mutateAll( translationUnit, formut ); 31 acceptAll( translationUnit, lfix ); 32 mutateAll( translationUnit, chmut ); 33 mutateAll( translationUnit, ranges ); 34 //mutateAll( translationUnit, exc ); 35 //acceptAll( translationUnit, lbl ); 36 } 40 37 } // namespace CodeGen 41 42
Note: See TracChangeset
for help on using the changeset viewer.