Changeset adcc065 for src/ControlStruct/MLEMutator.h
- Timestamp:
- Jul 6, 2016, 6:06:27 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 3f869f0
- Parents:
- e04c5ff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/MLEMutator.h
re04c5ff radcc065 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Wed Ju n 03 15:06:36 201513 // Update Count : 2511 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jul 6 16:49:52 2016 13 // Update Count : 31 14 14 // 15 15 … … 30 30 class MLEMutator : public Mutator { 31 31 class Entry; 32 typedef Mutator Parent; 32 33 public: 33 34 MLEMutator( std::map<Label, Statement *> *t, LabelGenerator *gen = 0 ) : targetTable( t ), breakLabel(std::string("")), generator( gen ) {} … … 35 36 36 37 CompoundStmt *mutate( CompoundStmt *cmpndStmt ); 37 Statement *mutate( WhileStmt *whileStmt );38 Statement *mutate( ForStmt *forStmt );39 Statement *mutate( BranchStmt *branchStmt ) throw ( SemanticError );38 virtual Statement *mutate( WhileStmt *whileStmt ) override; 39 virtual Statement *mutate( ForStmt *forStmt ) override; 40 virtual Statement *mutate( BranchStmt *branchStmt ) throw ( SemanticError ) override; 40 41 41 Statement *mutate( CaseStmt *caseStmt ); 42 Statement *mutate( SwitchStmt *switchStmt ); 43 Statement *mutate( ChooseStmt *switchStmt ); 42 virtual Statement *mutate( CaseStmt *caseStmt ) override; 43 virtual Statement *mutate( IfStmt *ifStmt ) override; 44 virtual Statement *mutate( SwitchStmt *switchStmt ) override; 45 virtual Statement *mutate( ChooseStmt *switchStmt ) override; 44 46 45 47 Statement *mutateLoop( Statement *bodyLoop, Entry &e ); … … 65 67 bool isContUsed() const { return contUsed; } 66 68 bool isBreakUsed() const { return breakUsed; } 67 68 69 private: 69 70 Statement *loop; … … 79 80 template< typename LoopClass > 80 81 Statement *handleLoopStmt( LoopClass *loopStmt ); 82 83 template< typename IfClass > 84 Statement *handleIfStmt( IfClass *switchStmt ); 81 85 82 86 template< typename SwitchClass >
Note: See TracChangeset
for help on using the changeset viewer.