Changeset db4ecc5 for src/InitTweak/RemoveInit.cc
- Timestamp:
- Apr 14, 2016, 3:22:42 PM (8 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, with_gc
- Children:
- 70a06f6
- Parents:
- 7eabc25
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/RemoveInit.cc
r7eabc25 rdb4ecc5 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon Apr 11 17:28:43201612 // Last Modified On : Thu Apr 14 15:09:36 2016 13 13 // Update Count : 166 14 14 // … … 42 42 43 43 RemoveInit(); 44 44 45 virtual ObjectDecl * mutate( ObjectDecl *objDecl ); 45 46 virtual DeclarationWithType * mutate( FunctionDecl *functionDecl ); … … 63 64 CtorDtor() : inFunction( false ) {} 64 65 65 virtual ObjectDecl* mutate( ObjectDecl * );66 virtual DeclarationWithType * mutate( ObjectDecl * ); 66 67 virtual DeclarationWithType * mutate( FunctionDecl *functionDecl ); 67 68 virtual Declaration* mutate( StructDecl *aggregateDecl ); … … 71 72 virtual TypeDecl* mutate( TypeDecl *typeDecl ); 72 73 virtual Declaration* mutate( TypedefDecl *typeDecl ); 74 75 virtual Type * mutate( FunctionType *funcType ); 73 76 74 77 protected: … … 187 190 } 188 191 189 ObjectDecl* CtorDtor::mutate( ObjectDecl * objDecl ) {192 DeclarationWithType * CtorDtor::mutate( ObjectDecl * objDecl ) { 190 193 // hands off if designated or if @= 191 194 if ( tryConstruct( objDecl ) ) { … … 233 236 } 234 237 } 235 return objDecl;238 return Mutator::mutate( objDecl ); 236 239 } 237 240 … … 254 257 TypeDecl* CtorDtor::mutate( TypeDecl *typeDecl ) { return typeDecl; } 255 258 Declaration* CtorDtor::mutate( TypedefDecl *typeDecl ) { return typeDecl; } 259 Type* CtorDtor::mutate( FunctionType *funcType ) { return funcType; } 256 260 257 261 } // namespace InitTweak
Note: See TracChangeset
for help on using the changeset viewer.