Changeset 33c0ce8


Ignore:
Timestamp:
Feb 1, 2018, 4:37:34 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
85521c7, a33fdbe
Parents:
624b722d
Message:

Expand VISIT/MUTATE_BODY for BranchStmt? and ThrowStmt?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.impl.h

    r624b722d r33c0ce8  
    889889template< typename pass_type >
    890890void PassVisitor< pass_type >::visit( BranchStmt * node ) {
    891         VISIT_BODY( node );
     891        VISIT_START( node );
     892        VISIT_END( node );
    892893}
    893894
    894895template< typename pass_type >
    895896Statement * PassVisitor< pass_type >::mutate( BranchStmt * node ) {
    896         MUTATE_BODY( Statement, node );
     897        MUTATE_START( node );
     898        MUTATE_END( Statement, node );
    897899}
    898900
     
    922924template< typename pass_type >
    923925void PassVisitor< pass_type >::visit( ThrowStmt * node ) {
    924         VISIT_BODY( node );
     926        VISIT_START( node );
     927
     928        maybeAccept_impl( node->expr, *this );
     929        maybeAccept_impl( node->target, *this );
     930
     931        VISIT_END( node );
    925932}
    926933
    927934template< typename pass_type >
    928935Statement * PassVisitor< pass_type >::mutate( ThrowStmt * node ) {
    929         MUTATE_BODY( Statement, node );
     936        MUTATE_START( node );
     937
     938        maybeMutate_impl( node->expr, *this );
     939        maybeMutate_impl( node->target, *this );
     940
     941        MUTATE_END( Statement, node );
    930942}
    931943
Note: See TracChangeset for help on using the changeset viewer.