aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-06 05:55:40 +0000
committerChris Lattner <sabre@nondot.org>2005-03-06 05:55:40 +0000
commitf1b4d1dee60c498c5c9c4485bbceb8168033580b (patch)
treea22ae638b649ec499d965b38c3bb54ce9043495c /lib/VMCore
parente4c872a8fae012699066e3b6eb2ab0a6f7a4681b (diff)
downloadexternal_llvm-f1b4d1dee60c498c5c9c4485bbceb8168033580b.zip
external_llvm-f1b4d1dee60c498c5c9c4485bbceb8168033580b.tar.gz
external_llvm-f1b4d1dee60c498c5c9c4485bbceb8168033580b.tar.bz2
rename insertEntry to insert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/SymbolTable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/SymbolTable.cpp b/lib/VMCore/SymbolTable.cpp
index 1a9e534..0881c41 100644
--- a/lib/VMCore/SymbolTable.cpp
+++ b/lib/VMCore/SymbolTable.cpp
@@ -233,7 +233,8 @@ void SymbolTable::insertEntry(const std::string &Name, const Type *VTy,
// insertEntry - Insert a value into the symbol table with the specified
// name...
//
-void SymbolTable::insertEntry(const std::string& Name, const Type* T) {
+void SymbolTable::insert(const std::string& Name, const Type* T) {
+ assert(T && "Can't insert null type into symbol table!");
// Check to see if there is a naming conflict. If so, rename this type!
std::string UniqueName = Name;