From 8e1b8473eb0ee97e7a7021059698eb6628fb2718 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 5 Mar 2005 19:02:15 +0000 Subject: 2nd arg to setName goes away. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20460 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/SymbolTable.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'lib/VMCore/SymbolTable.cpp') diff --git a/lib/VMCore/SymbolTable.cpp b/lib/VMCore/SymbolTable.cpp index 71fb1cd..d85ceed 100644 --- a/lib/VMCore/SymbolTable.cpp +++ b/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(V) || cast(V)->hasInternalLinkage()){ + if (!isa(V) || cast(V)->hasInternalLinkage()) { // Set name to "", removing from symbol table! - V->setName("", this); - RemovedSymbol = true; - } else if (isa(V) ) { - remove(V); + V->setName(""); RemovedSymbol = true; } ++B; -- cgit v1.1