Changeset 7b13aeb
- Timestamp:
- Jun 5, 2017, 3:16:16 PM (7 years ago)
- 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:
- c81ebf9
- Parents:
- 7e003011
- Location:
- src/Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.h
r7e003011 r7b13aeb 231 231 std::list< Statement* > * get_beforeStmts() { return stmtsToAddBefore_impl( pass, 0); } 232 232 std::list< Statement* > * get_afterStmts () { return stmtsToAddAfter_impl ( pass, 0); } 233 bool visit_children() { bool* skip = skip_children_impl(pass, 0); return ! (skip && *skip); } 233 234 }; 234 235 -
src/Common/PassVisitor.impl.h
r7e003011 r7b13aeb 3 3 #define VISIT_START( node ) \ 4 4 call_previsit( node ); \ 5 6 #define VISIT_END( node ) \ 5 if( visit_children() ) { \ 6 7 #define VISIT_END( node ) \ 8 } \ 7 9 return call_postvisit( node ); \ 8 10 9 11 #define MUTATE_START( node ) \ 10 12 call_premutate( node ); \ 13 if( visit_children() ) { \ 11 14 12 15 #define MUTATE_END( type, node ) \ 16 } \ 13 17 return call_postmutate< type * >( node ); \ 14 18 -
src/Common/PassVisitor.proto.h
r7e003011 r7b13aeb 81 81 FIELD_PTR( std::list< Statement* >, stmtsToAddBefore ) 82 82 FIELD_PTR( std::list< Statement* >, stmtsToAddAfter ) 83 FIELD_PTR( bool, skip_children )
Note: See TracChangeset
for help on using the changeset viewer.