Changeset 5964127


Ignore:
Timestamp:
Feb 16, 2018, 4:38:50 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
2b95887, 93401f8
Parents:
7c782af
Message:

Expand VISIT/MUTATE_BODY for NullStmt? and DeclStmt?

File:
1 edited

Legend:

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

    r7c782af r5964127  
    10871087template< typename pass_type >
    10881088void PassVisitor< pass_type >::visit( NullStmt * node ) {
    1089         VISIT_BODY( node );
     1089        VISIT_START( node );
     1090        VISIT_END( node );
    10901091}
    10911092
    10921093template< typename pass_type >
    10931094NullStmt * PassVisitor< pass_type >::mutate( NullStmt * node ) {
    1094         MUTATE_BODY( NullStmt, node );
     1095        MUTATE_START( node );
     1096        MUTATE_END( NullStmt, node );
    10951097}
    10961098
     
    10991101template< typename pass_type >
    11001102void PassVisitor< pass_type >::visit( DeclStmt * node ) {
    1101         VISIT_BODY( node );
     1103        VISIT_START( node );
     1104
     1105        maybeAccept_impl( node->decl, *this );
     1106
     1107        VISIT_END( node );
    11021108}
    11031109
    11041110template< typename pass_type >
    11051111Statement * PassVisitor< pass_type >::mutate( DeclStmt * node ) {
    1106         MUTATE_BODY( Statement, node );
     1112        MUTATE_START( node );
     1113
     1114        maybeMutate_impl( node->decl, *this );
     1115
     1116        MUTATE_END( Statement, node );
    11071117}
    11081118
Note: See TracChangeset for help on using the changeset viewer.