aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-06 05:56:02 +0000
committerChris Lattner <sabre@nondot.org>2005-03-06 05:56:02 +0000
commit73091bcebe3d2410cf0c4ef0ed8b30ebb299d87e (patch)
treea27dbdb8672b4a7d1874e5730bdaa24da57fc791
parentf1b4d1dee60c498c5c9c4485bbceb8168033580b (diff)
the only caller of insertEntry is insert, inline it and remove insertEntry
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20485 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/SymbolTable.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/llvm/SymbolTable.h b/include/llvm/SymbolTable.h
index 88bef96d4e..6514f95a1a 100644
--- a/include/llvm/SymbolTable.h
+++ b/include/llvm/SymbolTable.h
@@ -143,10 +143,7 @@ public:
/// allows a type with an existing entry in the symbol table to get
/// a new name.
/// @brief Insert a type under a new name.
- inline void insert(const std::string &Name, const Type *Typ) {
- assert(Typ && "Can't insert null type into symbol table!");
- insertEntry(Name, Typ);
- }
+ void insert(const std::string &Name, const Type *Typ);
/// This method removes a named value from the symbol table. The
/// type and name of the Value are extracted from \p N and used to
@@ -276,9 +273,6 @@ private:
/// @brief Insert a value into the symbol table with the specified name.
void insertEntry(const std::string &Name, const Type *Ty, Value *V);
- /// @brief Insert a type into the symbol table with the specified name.
- void insertEntry(const std::string &Name, const Type *T);
-
/// This function is called when one of the types in the type plane
/// is refined.
virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy);