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

Chris Lattner lattner at cs.uiuc.edu
Sat Mar 5 21:46:16 PST 2005



Changes in directory llvm/include/llvm:

SymbolTable.h updated: 1.44 -> 1.45
---
Log message:

Delete the really inefficient method: void remove(const Type* Typ);

Get rid of removeEntry(type_iterator), since 'remove' is exactly the same
operation.


---
Diffs of the changes:  (+1 -14)

 SymbolTable.h |   15 +--------------
 1 files changed, 1 insertion(+), 14 deletions(-)


Index: llvm/include/llvm/SymbolTable.h
diff -u llvm/include/llvm/SymbolTable.h:1.44 llvm/include/llvm/SymbolTable.h:1.45
--- llvm/include/llvm/SymbolTable.h:1.44	Sat Mar  5 23:22:05 2005
+++ llvm/include/llvm/SymbolTable.h	Sat Mar  5 23:46:00 2005
@@ -156,18 +156,9 @@
   /// @brief Remove a named value from the symbol table.
   void remove(Value* Val);
 
-  /// This method removes a named type from the symbol table. The
-  /// name of the type is extracted from \p T and used to look up
-  /// the Type in the type map. If the Type is not in the symbol
-  /// table, this method silently ignores the request.
-  /// @brief Remove a named type from the symbol table.
-  void remove(const Type* Typ);
-
   /// Remove a type at the specified position in the symbol table.
   /// @returns the removed Type.
-  inline Type* remove(type_iterator TI) {
-    return removeEntry(TI);
-  }
+  Type* remove(type_iterator TI);
 
   /// changeName - 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
@@ -292,10 +283,6 @@
   /// @returns the removed Value.
   Value* removeEntry(plane_iterator Plane, value_iterator Entry);
 
-  /// Remove a specific type from the SymbolTable.
-  /// @returns the removed Type.
-  Type*  removeEntry(type_iterator Entry);
-
   /// This function is called when one of the types in the type plane 
   /// is refined.
   virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy);






More information about the llvm-commits mailing list