diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-02-07 05:29:34 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-02-07 05:29:34 +0000 |
| commit | afd6f2f4636fb3add042251e4b68b31779ee2370 (patch) | |
| tree | eef715d841645beb0176921b867c4d020b732d5c /llvm/lib | |
| parent | 770dadf308879cd86dc6b624e888805a97678626 (diff) | |
| download | bcm5719-llvm-afd6f2f4636fb3add042251e4b68b31779ee2370.tar.gz bcm5719-llvm-afd6f2f4636fb3add042251e4b68b31779ee2370.zip | |
TypeSymbolTable::rename is dead, remove it
llvm-svn: 33982
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/TypeSymbolTable.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/VMCore/TypeSymbolTable.cpp b/llvm/lib/VMCore/TypeSymbolTable.cpp index ac89bb66451..6cc1055ebce 100644 --- a/llvm/lib/VMCore/TypeSymbolTable.cpp +++ b/llvm/lib/VMCore/TypeSymbolTable.cpp @@ -122,24 +122,6 @@ bool TypeSymbolTable::strip() { return RemovedSymbol; } -/// rename - Given a value with a non-empty name, remove its existing entry -/// from the symbol table and insert a new one for Name. This is equivalent to -/// doing "remove(V), V->Name = Name, insert(V)", but is faster, and will not -/// temporarily remove the symbol table plane if V is the last value in the -/// symtab with that name (which could invalidate iterators to that plane). -bool TypeSymbolTable::rename(Type *T, const std::string &name) { - for (iterator TI = tmap.begin(), TE = tmap.end(); TI != TE; ++TI) { - if (TI->second == T) { - // Remove the old entry. - tmap.erase(TI); - // Add the new entry. - this->insert(name,T); - return true; - } - } - return false; -} - // This function is called when one of the types in the type plane are refined void TypeSymbolTable::refineAbstractType(const DerivedType *OldType, const Type *NewType) { |

