[llvm-commits] CVS: llvm/include/llvm/SymbolTable.h

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



Changes in directory llvm/include/llvm:

SymbolTable.h updated: 1.41 -> 1.42
---
Log message:

nuke some dead methods.


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

 SymbolTable.h |   20 --------------------
 1 files changed, 20 deletions(-)


Index: llvm/include/llvm/SymbolTable.h
diff -u llvm/include/llvm/SymbolTable.h:1.41 llvm/include/llvm/SymbolTable.h:1.42
--- llvm/include/llvm/SymbolTable.h:1.41	Sat Mar  5 20:10:40 2005
+++ llvm/include/llvm/SymbolTable.h	Sat Mar  5 20:25:02 2005
@@ -159,16 +159,6 @@
     insertEntry(Val->getName(), Val->getType(), Val);
   }
 
-  /// Inserts a constant into the symbol table with the specified
-  /// name. There can be a many to one mapping between names and constants.
-  /// @brief Insert a constant or type.
-  inline void insert(const std::string &Name, Value *Val) {
-    assert(Val && "Can't insert null type into symbol table!");
-    assert(isa<Constant>(Val) &&
-           "Can only insert constants into a symbol table!");
-    insertEntry(Name, Val->getType(), Val);
-  }
-
   /// Inserts a type into the symbol table with the specified name. There
   /// can be a many-to-one mapping between names and types. This method
   /// allows a type with an existing entry in the symbol table to get
@@ -194,16 +184,6 @@
   /// @brief Remove a named type from the symbol table.
   void remove(const Type* Typ);
 
-  /// Remove a constant or type with the specified name from the 
-  /// symbol table.
-  /// @returns the removed Value.
-  /// @brief Remove a constant or type from the symbol table.
-  inline Value* remove(const std::string &Name, Value *Val) {
-    assert(Val && "Can't remove null value from symbol table!");
-    plane_iterator PI = pmap.find(Val->getType());
-    return removeEntry(PI, PI->second.find(Name));
-  }
-
   /// Remove a type at the specified position in the symbol table.
   /// @returns the removed Type.
   inline Type* remove(type_iterator TI) {






More information about the llvm-commits mailing list