Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Mutator.cc

    r630a82a rdc2e7e0  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // Mutator.cc -- 
     7// Mutator.cc --
    88//
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Apr  1 18:05:16 2016
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Mon Apr 18 17:29:55 2016
    1313// Update Count     : 16
    1414//
     
    274274}
    275275
     276Expression *Mutator::mutate( OffsetPackExpr *offsetPackExpr ) {
     277        mutateAll( offsetPackExpr->get_results(), *this );
     278        offsetPackExpr->set_type( maybeMutate( offsetPackExpr->get_type(), *this ) );
     279        return offsetPackExpr;
     280}
     281
    276282Expression *Mutator::mutate( AttrExpr *attrExpr ) {
    277283        mutateAll( attrExpr->get_results(), *this );
     
    329335        asmExpr->set_operand( maybeMutate( asmExpr->get_operand(), *this ) );
    330336        return asmExpr;
     337}
     338
     339Expression* Mutator::mutate( ImplicitCopyCtorExpr *impCpCtorExpr ) {
     340        impCpCtorExpr->set_callExpr( maybeMutate( impCpCtorExpr->get_callExpr(), *this ) );
     341        mutateAll( impCpCtorExpr->get_copyCtors(), *this );
     342        mutateAll( impCpCtorExpr->get_tempDecls(), *this );
     343        mutateAll( impCpCtorExpr->get_returnDecls(), *this );
     344        return impCpCtorExpr;
    331345}
    332346
     
    444458}
    445459
     460Initializer *Mutator::mutate( ConstructorInit *ctorInit ) {
     461        ctorInit->set_ctor( maybeMutate( ctorInit->get_ctor(), *this ) );
     462        ctorInit->set_init( maybeMutate( ctorInit->get_init(), *this ) );
     463        return ctorInit;
     464}
     465
    446466Subrange *Mutator::mutate( Subrange *subrange ) {
    447467        return subrange;
Note: See TracChangeset for help on using the changeset viewer.