Changes in / [61c7239:e7f8119]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
r61c7239 re7f8119 262 262 /// Used to restore values/functions/etc. when the Pass finishes visiting this node 263 263 class WithGuards { 264 __pass::at_cleanup_t at_cleanup; 265 264 __pass::at_cleanup_t at_cleanup = [](__pass::cleanup_func_t, void*) { 265 std::cerr << "No cleanup function was set" << std::endl; 266 abort(); 267 }; 268 269 template< typename pass_t> 270 friend auto __pass::at_cleanup( pass_t & pass, int ) -> decltype( &pass.at_cleanup ); 266 271 public: 272 267 273 /// When this node is finished being visited, restore the value of a variable 268 274 template< typename T >
Note: See TracChangeset
for help on using the changeset viewer.