Changes in src/SymTab/IdTable.cc [d3b7937:59cde21]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/IdTable.cc
rd3b7937 r59cde21 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 17:04:02 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Fri Jan 8 22:59:23 201613 // Update Count : 7 411 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Oct 07 12:21:13 2015 13 // Update Count : 73 14 14 // 15 15 … … 21 21 #include "Mangler.h" 22 22 #include "IdTable.h" 23 #include " Common/SemanticError.h"23 #include "SemanticError.h" 24 24 25 25 using std::string; … … 54 54 manglename = name; 55 55 } else if ( LinkageSpec::isOverridable( decl->get_linkage() ) ) { 56 // mangle the name without including the appropriate suffix, so overridable routines are placed into the 57 // same "bucket" as their user defined versions. 56 // mangle the name without including the appropriate suffix 57 // this will make it so that overridable routines are placed 58 // into the same "bucket" as their user defined versions. 58 59 manglename = Mangler::mangle( decl, false ); 59 60 } else { … … 70 71 std::stack< DeclEntry >& entry = it->second; 71 72 if ( ! entry.empty() && entry.top().second == scopeLevel ) { 72 // if we're giving the same name mangling to things of different types then there is something wrong 73 // if we're giving the same name mangling to things of 74 // different types then there is something wrong 73 75 Declaration *old = entry.top().first; 74 76 assert( (dynamic_cast<ObjectDecl*>( decl ) && dynamic_cast<ObjectDecl*>( old ) )
Note:
See TracChangeset
for help on using the changeset viewer.