Changes in src/SymTab/Indexer.cc [8b11840:6fc5c14]
- File:
-
- 1 edited
-
src/SymTab/Indexer.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Indexer.cc
r8b11840 r6fc5c14 407 407 makeWritable(); 408 408 409 const std::string &name = decl-> get_name();409 const std::string &name = decl->name; 410 410 std::string mangleName; 411 if ( LinkageSpec::isOverridable( decl-> get_linkage()) ) {411 if ( LinkageSpec::isOverridable( decl->linkage ) ) { 412 412 // mangle the name without including the appropriate suffix, so overridable routines are placed into the 413 413 // same "bucket" as their user defined versions. … … 418 418 419 419 // this ensures that no two declarations with the same unmangled name at the same scope both have C linkage 420 if ( ! LinkageSpec::isMangled( decl-> get_linkage()) ) {420 if ( ! LinkageSpec::isMangled( decl->linkage ) ) { 421 421 // NOTE this is broken in Richard's original code in such a way that it never triggers (it 422 422 // doesn't check decls that have the same manglename, and all C-linkage decls are defined to … … 571 571 572 572 if ( doDebug ) { 573 std::c out<< "--- Entering scope " << scope << std::endl;573 std::cerr << "--- Entering scope " << scope << std::endl; 574 574 } 575 575 } 576 576 577 577 void Indexer::leaveScope() { 578 using std::c out;578 using std::cerr; 579 579 580 580 assert( scope > 0 && "cannot leave initial scope" ); 581 if ( doDebug ) { 582 cerr << "--- Leaving scope " << scope << " containing" << std::endl; 583 } 581 584 --scope; 582 585 583 586 while ( tables && tables->scope > scope ) { 584 587 if ( doDebug ) { 585 cout << "--- Leaving scope " << tables->scope << " containing" << std::endl; 586 dump( tables->idTable, cout ); 587 dump( tables->typeTable, cout ); 588 dump( tables->structTable, cout ); 589 dump( tables->enumTable, cout ); 590 dump( tables->unionTable, cout ); 591 dump( tables->traitTable, cout ); 588 dump( tables->idTable, cerr ); 589 dump( tables->typeTable, cerr ); 590 dump( tables->structTable, cerr ); 591 dump( tables->enumTable, cerr ); 592 dump( tables->unionTable, cerr ); 593 dump( tables->traitTable, cerr ); 592 594 } 593 595
Note:
See TracChangeset
for help on using the changeset viewer.