diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-03-05 19:02:15 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-03-05 19:02:15 +0000 |
| commit | f66165674f6d7fa06d82a1691aa38a67dba1cb57 (patch) | |
| tree | 87e30582eb7dd1d0d19daf55a9c7c4f90105296a /llvm/lib/VMCore | |
| parent | cc77b84fcb8d63404968a2af9f115bd87e8b8d2a (diff) | |
| download | bcm5719-llvm-f66165674f6d7fa06d82a1691aa38a67dba1cb57.tar.gz bcm5719-llvm-f66165674f6d7fa06d82a1691aa38a67dba1cb57.zip | |
2nd arg to setName goes away.
llvm-svn: 20460
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/SymbolTable.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/lib/VMCore/SymbolTable.cpp b/llvm/lib/VMCore/SymbolTable.cpp index 71fb1cd43ff..d85ceed3c60 100644 --- a/llvm/lib/VMCore/SymbolTable.cpp +++ b/llvm/lib/VMCore/SymbolTable.cpp @@ -217,7 +217,7 @@ void SymbolTable::insertEntry(const std::string &Name, const Type *VTy, assert(InternallyInconsistent == false && "Infinite loop inserting value!"); InternallyInconsistent = true; - V->setName(UniqueName, this); + V->setName(UniqueName); InternallyInconsistent = false; return; } @@ -281,7 +281,7 @@ std::string SymbolTable::get_name( const Value* V ) const { // Get the name of a type -std::string SymbolTable::get_name( const Type* T ) const { +std::string SymbolTable::get_name(const Type* T) const { if (tmap.empty()) return ""; // No types at all. type_const_iterator TI = tmap.begin(); @@ -298,7 +298,7 @@ std::string SymbolTable::get_name( const Type* T ) const { // Strip the symbol table of its names. -bool SymbolTable::strip( void ) { +bool SymbolTable::strip() { bool RemovedSymbol = false; for (plane_iterator I = pmap.begin(); I != pmap.end();) { // Removing items from the plane can cause the plane itself to get deleted. @@ -307,12 +307,9 @@ bool SymbolTable::strip( void ) { value_iterator B = Plane.begin(), Bend = Plane.end(); while (B != Bend) { // Found nonempty type plane! Value *V = B->second; - if (!isa<GlobalValue>(V) || cast<GlobalValue>(V)->hasInternalLinkage()){ + if (!isa<GlobalValue>(V) || cast<GlobalValue>(V)->hasInternalLinkage()) { // Set name to "", removing from symbol table! - V->setName("", this); - RemovedSymbol = true; - } else if (isa<Constant>(V) ) { - remove(V); + V->setName(""); RemovedSymbol = true; } ++B; |

