summaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-06 02:37:47 +0000
committerChris Lattner <sabre@nondot.org>2005-03-06 02:37:47 +0000
commit921c56588811ea79e7fa10ff3b81788816f70ae8 (patch)
tree5f4eb63b39943926caabecfcc74c71f001f95988 /lib/VMCore
parent7fd5dee54a59cd3b87cdb349d0d5817c3b93f44e (diff)
remove these methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/SymbolTable.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/lib/VMCore/SymbolTable.cpp b/lib/VMCore/SymbolTable.cpp
index c38b8e085d7..db46607718f 100644
--- a/lib/VMCore/SymbolTable.cpp
+++ b/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;