Changeset 9ea38de for src/AST/Pass.hpp
- Timestamp:
- Jun 25, 2019, 11:26:30 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- bcb311b
- Parents:
- 28af389
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
r28af389 r9ea38de 209 209 /// Internal RAII guard for symbol table features 210 210 struct guard_symtab { 211 guard_symtab( Pass<pass_t> & pass ): pass( pass ) { __pass::symtab::enter(pass , 0); }212 ~guard_symtab() { __pass::symtab::leave(pass , 0); }211 guard_symtab( Pass<pass_t> & pass ): pass( pass ) { __pass::symtab::enter(pass.pass, 0); } 212 ~guard_symtab() { __pass::symtab::leave(pass.pass, 0); } 213 213 Pass<pass_t> & pass; 214 214 }; … … 216 216 /// Internal RAII guard for scope features 217 217 struct guard_scope { 218 guard_scope( Pass<pass_t> & pass ): pass( pass ) { __pass::scope::enter(pass , 0); }219 ~guard_scope() { __pass::scope::leave(pass , 0); }218 guard_scope( Pass<pass_t> & pass ): pass( pass ) { __pass::scope::enter(pass.pass, 0); } 219 ~guard_scope() { __pass::scope::leave(pass.pass, 0); } 220 220 Pass<pass_t> & pass; 221 221 };
Note: See TracChangeset
for help on using the changeset viewer.