Changes in src/SynTree/Mutator.cc [71f4e4f:2a4b088]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.cc
r71f4e4f r2a4b088 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Mutator.cc -- 7 // Mutator.cc -- 8 8 // 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 : Wed Jan 13 15:32:29 201613 // Update Count : 1 511 // 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 … … 22 22 #include "Expression.h" 23 23 #include "Constant.h" 24 #include " utility.h"24 #include "Common/utility.h" 25 25 26 26 Mutator::Mutator() {} … … 259 259 } 260 260 return alignofExpr; 261 } 262 263 Expression *Mutator::mutate( UntypedOffsetofExpr *offsetofExpr ) { 264 mutateAll( offsetofExpr->get_results(), *this ); 265 offsetofExpr->set_type( maybeMutate( offsetofExpr->get_type(), *this ) ); 266 return offsetofExpr; 267 } 268 269 Expression *Mutator::mutate( OffsetofExpr *offsetofExpr ) { 270 mutateAll( offsetofExpr->get_results(), *this ); 271 offsetofExpr->set_type( maybeMutate( offsetofExpr->get_type(), *this ) ); 272 offsetofExpr->set_member( maybeMutate( offsetofExpr->get_member(), *this ) ); 273 return offsetofExpr; 261 274 } 262 275 … … 419 432 } 420 433 421 Initializer *Mutator::mutate( ConstructorInit *ctorInit ) {422 ctorInit->set_ctor( maybeMutate( ctorInit->get_ctor(), *this ) );423 ctorInit->set_init( maybeMutate( ctorInit->get_init(), *this ) );424 return ctorInit;425 }426 427 434 Subrange *Mutator::mutate( Subrange *subrange ) { 428 435 return subrange;
Note:
See TracChangeset
for help on using the changeset viewer.