constants can't be in the symtab anymore

llvm-svn: 33993
This commit is contained in:
Chris Lattner 2007-02-07 06:28:48 +00:00
parent d17dbe9dcd
commit 86fc08145b
1 changed files with 4 additions and 8 deletions

View File

@ -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!");
assert(vmap.empty() && "Values remain in symbol table!");
#endif
}