Changes in / [6e3e0717:a62749f]
- Location:
- src/AST
- Files:
-
- 2 edited
-
Convert.cpp (modified) (5 diffs)
-
Pass.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
r6e3e0717 ra62749f 159 159 auto&& attr = get<Attribute>().acceptL( node->attributes ); 160 160 if ( inCache( node ) ) { 161 if(node->name == "tmp") { 162 std::cerr << (void*)node << "(new) in cache " << (void*)this->node << "(old)" << std::endl; 163 } 161 164 return nullptr; 162 165 } … … 171 174 Type::FuncSpecifiers( node->funcSpec.val ) 172 175 ); 176 if(node->name == "tmp") { 177 std::cerr << (void*)node << "(new) created " << (void*)decl << "(old)" << std::endl; 178 } 173 179 return declWithTypePostamble( decl, node ); 174 180 } … … 1465 1471 1466 1472 virtual void visit( ObjectDecl * old ) override final { 1473 if( old->name == "tmp" ) { 1474 std::cerr << "building parameters for" << (void*)old << std::endl; 1475 } 1467 1476 auto&& type = GET_ACCEPT_1(type, Type); 1468 1477 auto&& init = GET_ACCEPT_1(init, Init); 1469 1478 auto&& bfwd = GET_ACCEPT_1(bitfieldWidth, Expr); 1470 1479 auto&& attr = GET_ACCEPT_V(attributes, Attribute); 1480 if( old->name == "tmp" ) { 1481 std::cerr << "checking cache for " << (void*)old << std::endl; 1482 } 1471 1483 if ( inCache( old ) ) { 1484 if( old->name == "tmp" ) { 1485 std::cerr << (void*)old << "(old) in cache " << (void*)this->node << "(new)" << std::endl; 1486 } 1472 1487 return; 1473 1488 } … … 1484 1499 ); 1485 1500 cache.emplace(old, decl); 1501 if( old->name == "tmp" ) { 1502 std::cerr << (void*)old << "(old) added to cache with " << (void*)decl << "(new)" << std::endl; 1503 } 1486 1504 assert(cache.find( old ) != cache.end()); 1487 1505 decl->scopeLevel = old->scopeLevel; … … 1492 1510 1493 1511 this->node = decl; 1512 1513 if( old->name == "tmp" ) { 1514 std::cerr << (void*)old << "(old) created " << (void*)this->node << "(new)" << std::endl; 1515 } 1494 1516 } 1495 1517 -
src/AST/Pass.hpp
r6e3e0717 ra62749f 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 = [](__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 ); 264 __pass::at_cleanup_t at_cleanup; 265 271 266 public: 272 273 267 /// When this node is finished being visited, restore the value of a variable 274 268 template< typename T >
Note:
See TracChangeset
for help on using the changeset viewer.