summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit86fe3a1fdb73cfb43bd0ce881ee3c0aaf192890d (patch)
tree7b84026b7ddf329f6150d00f8b3c634f9ca05712 /llvm/lib
parent533805e6da9f8c7b0c0392db642008460bac0795 (diff)
downloadbcm5719-llvm-86fe3a1fdb73cfb43bd0ce881ee3c0aaf192890d.tar.gz
bcm5719-llvm-86fe3a1fdb73cfb43bd0ce881ee3c0aaf192890d.zip
rename insertEntry to insert
llvm-svn: 20484
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/SymbolTable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/SymbolTable.cpp b/llvm/lib/VMCore/SymbolTable.cpp
index 1a9e534ffc9..0881c418969 100644
--- a/llvm/lib/VMCore/SymbolTable.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud