Changes in src/AST/Pass.hpp [0e42794:d76c588]
- File:
-
- 1 edited
-
src/AST/Pass.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
r0e42794 rd76c588 33 33 #include "AST/Visitor.hpp" 34 34 35 #include " AST/SymbolTable.hpp"35 #include "SymTab/Indexer.h" 36 36 37 37 // Private prelude header, needed for some of the magic tricks this class pulls off … … 61 61 // postvisit/postmutate teminates. 62 62 // | WithVisitorRef - provides an pointer to the templated visitor wrapper 63 // | With SymbolTable - provides symbol table functionality63 // | WithIndexer - provides indexer functionality (i.e. up-to-date symbol table) 64 64 //------------------------------------------------------------------------------------------------- 65 65 template< typename pass_t > … … 206 206 207 207 private: 208 /// Internal RAII guard for symbol tablefeatures209 struct guard_ symtab{210 guard_ symtab( Pass<pass_t> & pass ): pass( pass ) { __pass::symtab::enter(pass, 0); }211 ~guard_ symtab() { __pass::symtab::leave(pass, 0); }208 /// Internal RAII guard for indexer features 209 struct guard_indexer { 210 guard_indexer( Pass<pass_t> & pass ): pass( pass ) { __pass::indexer::enter(pass, 0); } 211 ~guard_indexer() { __pass::indexer::leave(pass, 0); } 212 212 Pass<pass_t> & pass; 213 213 }; … … 294 294 }; 295 295 296 /// Use when the templated visitor should update the symbol table297 struct With SymbolTable{298 Sym bolTable symtab;296 /// Use when the templated visitor should update the indexer 297 struct WithIndexer { 298 SymTab::Indexer indexer; 299 299 }; 300 300 }
Note:
See TracChangeset
for help on using the changeset viewer.