[llvm-commits] CVS: llvm/lib/VMCore/SymbolTable.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Mar 5 18:38:18 PST 2005



Changes in directory llvm/lib/VMCore:

SymbolTable.cpp updated: 1.52 -> 1.53
---
Log message:

remove these methods.


---
Diffs of the changes:  (+0 -42)

 SymbolTable.cpp |   42 ------------------------------------------
 1 files changed, 42 deletions(-)


Index: llvm/lib/VMCore/SymbolTable.cpp
diff -u llvm/lib/VMCore/SymbolTable.cpp:1.52 llvm/lib/VMCore/SymbolTable.cpp:1.53
--- llvm/lib/VMCore/SymbolTable.cpp:1.52	Sat Mar  5 20:14:28 2005
+++ llvm/lib/VMCore/SymbolTable.cpp	Sat Mar  5 20:37:47 2005
@@ -291,48 +291,6 @@
   }
 }
 
-
-// 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;






More information about the llvm-commits mailing list