Ignore:
Timestamp:
Apr 14, 2016, 3:22:42 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
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
Message:

add ImplicitCopyCtorExpr? node, implicit copy constructors are inserted into the right places (but there is room for elision)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/RemoveInit.cc

    r7eabc25 rdb4ecc5  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Mon Apr 11 17:28:43 2016
     12// Last Modified On : Thu Apr 14 15:09:36 2016
    1313// Update Count     : 166
    1414//
     
    4242
    4343                RemoveInit();
     44
    4445                virtual ObjectDecl * mutate( ObjectDecl *objDecl );
    4546                virtual DeclarationWithType * mutate( FunctionDecl *functionDecl );
     
    6364                CtorDtor() : inFunction( false ) {}
    6465
    65                 virtual ObjectDecl * mutate( ObjectDecl * );
     66                virtual DeclarationWithType * mutate( ObjectDecl * );
    6667                virtual DeclarationWithType * mutate( FunctionDecl *functionDecl );
    6768                virtual Declaration* mutate( StructDecl *aggregateDecl );
     
    7172                virtual TypeDecl* mutate( TypeDecl *typeDecl );
    7273                virtual Declaration* mutate( TypedefDecl *typeDecl );
     74
     75                virtual Type * mutate( FunctionType *funcType );
    7376
    7477          protected:
     
    187190        }
    188191
    189         ObjectDecl * CtorDtor::mutate( ObjectDecl * objDecl ) {
     192        DeclarationWithType * CtorDtor::mutate( ObjectDecl * objDecl ) {
    190193                // hands off if designated or if @=
    191194                if ( tryConstruct( objDecl ) ) {
     
    233236                        }
    234237                }
    235                 return objDecl;
     238                return Mutator::mutate( objDecl );
    236239        }
    237240
     
    254257        TypeDecl* CtorDtor::mutate( TypeDecl *typeDecl ) { return typeDecl; }
    255258        Declaration* CtorDtor::mutate( TypedefDecl *typeDecl ) { return typeDecl; }
     259        Type* CtorDtor::mutate( FunctionType *funcType ) { return funcType; }
    256260
    257261} // namespace InitTweak
Note: See TracChangeset for help on using the changeset viewer.