- Timestamp:
- Jun 10, 2019, 12:21:28 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6e3e0717
- Parents:
- e7f8119
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
re7f8119 r6355ba7 154 154 auto&& attr = get<Attribute>().acceptL( node->attributes ); 155 155 if ( inCache( node ) ) { 156 if(node->name == "tmp") {157 std::cerr << (void*)node << "(new) in cache " << (void*)this->node << "(old)" << std::endl;158 }159 156 return nullptr; 160 157 } … … 169 166 Type::FuncSpecifiers( node->funcSpec.val ) 170 167 ); 171 if(node->name == "tmp") {172 std::cerr << (void*)node << "(new) created " << (void*)decl << "(old)" << std::endl;173 }174 168 return declWithTypePostamble( decl, node ); 175 169 } … … 1422 1416 # define GET_ACCEPT_V(child, type) \ 1423 1417 getAcceptV< ast::type, decltype( old->child ) >( old->child ) 1424 1418 1425 1419 template<typename NewT, typename OldC> 1426 1420 std::deque< ast::ptr<NewT> > getAcceptD( OldC& old ) { … … 1470 1464 1471 1465 virtual void visit( ObjectDecl * old ) override final { 1472 if( old->name == "tmp" ) {1473 std::cerr << "building parameters for" << (void*)old << std::endl;1474 }1475 1466 auto&& type = GET_ACCEPT_1(type, Type); 1476 1467 auto&& init = GET_ACCEPT_1(init, Init); 1477 1468 auto&& bfwd = GET_ACCEPT_1(bitfieldWidth, Expr); 1478 1469 auto&& attr = GET_ACCEPT_V(attributes, Attribute); 1479 if( old->name == "tmp" ) {1480 std::cerr << "checking cache for " << (void*)old << std::endl;1481 }1482 1470 if ( inCache( old ) ) { 1483 if( old->name == "tmp" ) {1484 std::cerr << (void*)old << "(old) in cache " << (void*)this->node << "(new)" << std::endl;1485 }1486 1471 return; 1487 1472 } … … 1498 1483 ); 1499 1484 cache.emplace(old, decl); 1500 if( old->name == "tmp" ) {1501 std::cerr << (void*)old << "(old) added to cache with " << (void*)decl << "(new)" << std::endl;1502 }1503 1485 assert(cache.find( old ) != cache.end()); 1504 1486 decl->scopeLevel = old->scopeLevel; … … 1509 1491 1510 1492 this->node = decl; 1511 1512 if( old->name == "tmp" ) {1513 std::cerr << (void*)old << "(old) created " << (void*)this->node << "(new)" << std::endl;1514 }1515 1493 } 1516 1494
Note: See TracChangeset
for help on using the changeset viewer.