[llvm-commits] CVS: llvm/lib/VMCore/ValueSymbolTable.cpp
Chris Lattner
sabre at nondot.org
Tue Feb 6 22:29:05 PST 2007
Changes in directory llvm/lib/VMCore:
ValueSymbolTable.cpp updated: 1.9 -> 1.10
---
Log message:
constants can't be in the symtab anymore
---
Diffs of the changes: (+4 -8)
ValueSymbolTable.cpp | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
Index: llvm/lib/VMCore/ValueSymbolTable.cpp
diff -u llvm/lib/VMCore/ValueSymbolTable.cpp:1.9 llvm/lib/VMCore/ValueSymbolTable.cpp:1.10
--- llvm/lib/VMCore/ValueSymbolTable.cpp:1.9 Wed Feb 7 00:25:36 2007
+++ llvm/lib/VMCore/ValueSymbolTable.cpp Wed Feb 7 00:28:48 2007
@@ -23,15 +23,11 @@
// 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
}
More information about the llvm-commits
mailing list