Delete the really inefficient method: void remove(const Type* Typ);
authorChris Lattner <sabre@nondot.org>
Sun, 6 Mar 2005 05:46:00 +0000 (05:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 6 Mar 2005 05:46:00 +0000 (05:46 +0000)
Get rid of removeEntry(type_iterator), since 'remove' is exactly the same
operation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20480 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/SymbolTable.h

index 1576c9791613e65832b51d80660d2b2568a1ad16..7aaadaaa77f2efe12e962de04f0becbfd3ee09af 100644 (file)
@@ -156,18 +156,9 @@ public:
   /// @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 @@ private:
   /// @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);