From eb9a12cbce2a9fa69aa68b8c21f69b4e1405cb1a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 6 Mar 2005 02:37:47 +0000 Subject: [PATCH] remove these methods. llvm-svn: 20474 --- llvm/lib/VMCore/SymbolTable.cpp | 42 --------------------------------- 1 file changed, 42 deletions(-) diff --git a/llvm/lib/VMCore/SymbolTable.cpp b/llvm/lib/VMCore/SymbolTable.cpp index c38b8e085d71..db46607718f0 100644 --- a/llvm/lib/VMCore/SymbolTable.cpp +++ b/llvm/lib/VMCore/SymbolTable.cpp @@ -291,48 +291,6 @@ void SymbolTable::insertEntry(const std::string& Name, const Type* T) { } } - -// Determine how many entries for a given type. -unsigned SymbolTable::type_size(const Type *Ty) const { - plane_const_iterator PI = pmap.find(Ty); - if ( PI == pmap.end() ) return 0; - return PI->second.size(); -} - - -// Get the name of a value -std::string SymbolTable::get_name( const Value* V ) const { - value_const_iterator VI = this->value_begin( V->getType() ); - value_const_iterator VE = this->value_end( V->getType() ); - - // Search for the entry - while ( VI != VE && VI->second != V ) - ++VI; - - if ( VI != VE ) - return VI->first; - - return ""; -} - - -// Get the name of a type -std::string SymbolTable::get_name(const Type* T) const { - if (tmap.empty()) return ""; // No types at all. - - type_const_iterator TI = tmap.begin(); - type_const_iterator TE = tmap.end(); - - // Search for the entry - while (TI != TE && TI->second != T ) - ++TI; - - if (TI != TE) // Must have found an entry! - return TI->first; - return ""; // Must not have found anything... -} - - // Strip the symbol table of its names. bool SymbolTable::strip() { bool RemovedSymbol = false;