Changeset 35df560


Ignore:
Timestamp:
Jun 22, 2017, 9:49:32 AM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
925b7f4
Parents:
da24468
Message:

Added boilerplate for declarations to add

Location:
src/Common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.h

    rda24468 r35df560  
    231231        std::list< Statement* > *       get_beforeStmts() { return stmtsToAddBefore_impl( pass, 0); }
    232232        std::list< Statement* > *       get_afterStmts () { return stmtsToAddAfter_impl ( pass, 0); }
     233        std::list< Declaration* > *     get_beforeDecls() { return declsToAddBefore_impl( pass, 0); }
     234        std::list< Declaration* > *     get_afterDecls () { return declsToAddAfter_impl ( pass, 0); }
    233235        bool visit_children() { bool* skip = skip_children_impl(pass, 0); return ! (skip && *skip); }
    234236        void reset_visit() { bool* skip = skip_children_impl(pass, 0); if(skip) *skip = false; }
  • src/Common/PassVisitor.impl.h

    rda24468 r35df560  
    348348
    349349//--------------------------------------------------------------------------
    350 // SwitchStmt
     350// CaseStmt
    351351template< typename pass_type >
    352352void PassVisitor< pass_type >::visit( CaseStmt * node ) {
  • src/Common/PassVisitor.proto.h

    rda24468 r35df560  
    112112FIELD_PTR( std::list< Statement* >, stmtsToAddBefore )
    113113FIELD_PTR( std::list< Statement* >, stmtsToAddAfter  )
     114FIELD_PTR( std::list< Declaration* >, declsToAddBefore )
     115FIELD_PTR( std::list< Declaration* >, declsToAddAfter  )
    114116FIELD_PTR( bool, skip_children )
    115117FIELD_PTR( at_cleanup_t, at_cleanup )
Note: See TracChangeset for help on using the changeset viewer.