Changeset d60ccbf for src/SynTree/Mutator.cc
- Timestamp:
- Aug 12, 2015, 2:27:31 PM (10 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:
- f32c7f4
- Parents:
- e45215c (diff), e869d663 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.cc
re45215c rd60ccbf 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Tue Jul 14 12:31:39201513 // Update Count : 211 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 25 19:21:33 2015 13 // Update Count : 11 14 14 // 15 15 … … 28 28 Mutator::~Mutator() {} 29 29 30 ObjectDecl*Mutator::mutate( ObjectDecl *objectDecl ) {30 DeclarationWithType *Mutator::mutate( ObjectDecl *objectDecl ) { 31 31 objectDecl->set_type( maybeMutate( objectDecl->get_type(), *this ) ); 32 32 objectDecl->set_init( maybeMutate( objectDecl->get_init(), *this ) ); … … 93 93 exprStmt->set_expr( maybeMutate( exprStmt->get_expr(), *this ) ); 94 94 return exprStmt; 95 } 96 97 Statement *Mutator::mutate( AsmStmt *asmStmt ) { 98 asmStmt->set_instruction( maybeMutate( asmStmt->get_instruction(), *this ) ); 99 mutateAll( asmStmt->get_output(), *this ); 100 mutateAll( asmStmt->get_input(), *this ); 101 mutateAll( asmStmt->get_clobber(), *this ); 102 return asmStmt; 95 103 } 96 104 … … 291 299 typeExpr->set_type( maybeMutate( typeExpr->get_type(), *this ) ); 292 300 return typeExpr; 301 } 302 303 Expression *Mutator::mutate( AsmExpr *asmExpr ) { 304 asmExpr->set_inout( maybeMutate( asmExpr->get_inout(), *this ) ); 305 asmExpr->set_constraint( maybeMutate( asmExpr->get_constraint(), *this ) ); 306 asmExpr->set_operand( maybeMutate( asmExpr->get_operand(), *this ) ); 307 return asmExpr; 293 308 } 294 309
Note:
See TracChangeset
for help on using the changeset viewer.