summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/ValueSymbolTable.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-07 06:28:48 +0000
committerChris Lattner <sabre@nondot.org>2007-02-07 06:28:48 +0000
commit86fc08145bcbfe400127595a35c57ec32e3ede61 (patch)
tree221fcae5ee8c18bea6a4f706264470107cdaa4be /llvm/lib/VMCore/ValueSymbolTable.cpp
parentd17dbe9dcd0837dbd01adb1d123891222e9ca3d0 (diff)
downloadbcm5719-llvm-86fc08145bcbfe400127595a35c57ec32e3ede61.tar.gz
bcm5719-llvm-86fc08145bcbfe400127595a35c57ec32e3ede61.zip
constants can't be in the symtab anymore
llvm-svn: 33993
Diffstat (limited to 'llvm/lib/VMCore/ValueSymbolTable.cpp')
-rw-r--r--llvm/lib/VMCore/ValueSymbolTable.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/VMCore/ValueSymbolTable.cpp b/llvm/lib/VMCore/ValueSymbolTable.cpp
index 101212eaa66..2f55e490df6 100644
--- a/llvm/lib/VMCore/ValueSymbolTable.cpp
+++ b/llvm/lib/VMCore/ValueSymbolTable.cpp
@@ -23,15 +23,11 @@ using namespace llvm;
// Class destructor
ValueSymbolTable::~ValueSymbolTable() {
#ifndef NDEBUG // Only do this in -g mode...
- bool LeftoverValues = true;
for (iterator VI = vmap.begin(), VE = vmap.end(); VI != VE; ++VI)
- if (!isa<Constant>(VI->second) ) {
- DEBUG(DOUT << "Value still in symbol table! Type = '"
- << VI->second->getType()->getDescription() << "' Name = '"
- << VI->first << "'\n");
- LeftoverValues = false;
- }
- assert(LeftoverValues && "Values remain in symbol table!");
+ DEBUG(DOUT << "Value still in symbol table! Type = '"
+ << VI->second->getType()->getDescription() << "' Name = '"
+ << VI->first << "'\n");
+ assert(vmap.empty() && "Values remain in symbol table!");
#endif
}
OpenPOWER on IntegriCloud