Changes in / [a62749f:6e3e0717]
- Location:
- src/AST
- Files:
-
- 2 edited
-
Convert.cpp (modified) (5 diffs)
-
Pass.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
ra62749f r6e3e0717 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 }164 161 return nullptr; 165 162 } … … 174 171 Type::FuncSpecifiers( node->funcSpec.val ) 175 172 ); 176 if(node->name == "tmp") {177 std::cerr << (void*)node << "(new) created " << (void*)decl << "(old)" << std::endl;178 }179 173 return declWithTypePostamble( decl, node ); 180 174 } … … 1471 1465 1472 1466 virtual void visit( ObjectDecl * old ) override final { 1473 if( old->name == "tmp" ) {1474 std::cerr << "building parameters for" << (void*)old << std::endl;1475 }1476 1467 auto&& type = GET_ACCEPT_1(type, Type); 1477 1468 auto&& init = GET_ACCEPT_1(init, Init); 1478 1469 auto&& bfwd = GET_ACCEPT_1(bitfieldWidth, Expr); 1479 1470 auto&& attr = GET_ACCEPT_V(attributes, Attribute); 1480 if( old->name == "tmp" ) {1481 std::cerr << "checking cache for " << (void*)old << std::endl;1482 }1483 1471 if ( inCache( old ) ) { 1484 if( old->name == "tmp" ) {1485 std::cerr << (void*)old << "(old) in cache " << (void*)this->node << "(new)" << std::endl;1486 }1487 1472 return; 1488 1473 } … … 1499 1484 ); 1500 1485 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 }1504 1486 assert(cache.find( old ) != cache.end()); 1505 1487 decl->scopeLevel = old->scopeLevel; … … 1510 1492 1511 1493 this->node = decl; 1512 1513 if( old->name == "tmp" ) {1514 std::cerr << (void*)old << "(old) created " << (void*)this->node << "(new)" << std::endl;1515 }1516 1494 } 1517 1495 -
src/AST/Pass.hpp
ra62749f r6e3e0717 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.