Changeset bc6f918


Ignore:
Timestamp:
Jan 31, 2018, 5:14:23 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:
e2e7330
Parents:
60914351
Message:

Expand VISIT/MUTATE_BODY for AsmStmt?

File:
1 edited

Legend:

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

    r60914351 rbc6f918  
    737737template< typename pass_type >
    738738void PassVisitor< pass_type >::visit( AsmStmt * node ) {
    739         VISIT_BODY( node );
     739        VISIT_START( node )
     740
     741        maybeAccept_impl( node->instruction, *this );
     742        maybeAccept_impl( node->output, *this );
     743        maybeAccept_impl( node->input, *this );
     744        maybeAccept_impl( node->clobber, *this );
     745
     746        VISIT_END( node );
    740747}
    741748
    742749template< typename pass_type >
    743750Statement * PassVisitor< pass_type >::mutate( AsmStmt * node ) {
    744         MUTATE_BODY( Statement, node );
     751        MUTATE_START( node );
     752
     753        maybeMutate_impl( node->instruction, *this );
     754        maybeMutate_impl( node->output, *this );
     755        maybeMutate_impl( node->input, *this );
     756        maybeMutate_impl( node->clobber, *this );
     757
     758        MUTATE_END( Statement, node );
    745759}
    746760
Note: See TracChangeset for help on using the changeset viewer.