Changes in src/AST/Pass.proto.hpp [95e5018:3f681b1]
- File:
-
- 1 edited
-
src/AST/Pass.proto.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.proto.hpp
r95e5018 r3f681b1 326 326 } 327 327 328 template< typename core_t, typename node_t >329 static auto make_location_guard( core_t & core, node_t * node, int )330 -> decltype( node->location, ValueGuardPtr<const CodeLocation *>( &core.location ) ) {331 ValueGuardPtr<const CodeLocation *> guard( &core.location );332 core.location = &node->location;333 return guard;334 }335 336 template< typename core_t, typename node_t >337 static auto make_location_guard( core_t &, node_t *, long ) -> int {338 return 0;339 }340 341 328 // Another feature of the templated visitor is that it calls beginScope()/endScope() for compound statement. 342 329 // All passes which have such functions are assumed desire this behaviour
Note:
See TracChangeset
for help on using the changeset viewer.