[llvm-commits] CVS: llvm/lib/VMCore/ValueSymbolTable.cpp
Chris Lattner
sabre at nondot.org
Sun Feb 25 12:43:15 PST 2007
Changes in directory llvm/lib/VMCore:
ValueSymbolTable.cpp updated: 1.11 -> 1.12
---
Log message:
disable some noisy debug output
---
Diffs of the changes: (+12 -12)
ValueSymbolTable.cpp | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
Index: llvm/lib/VMCore/ValueSymbolTable.cpp
diff -u llvm/lib/VMCore/ValueSymbolTable.cpp:1.11 llvm/lib/VMCore/ValueSymbolTable.cpp:1.12
--- llvm/lib/VMCore/ValueSymbolTable.cpp:1.11 Sun Feb 11 23:18:08 2007
+++ llvm/lib/VMCore/ValueSymbolTable.cpp Sun Feb 25 14:42:59 2007
@@ -23,9 +23,9 @@
ValueSymbolTable::~ValueSymbolTable() {
#ifndef NDEBUG // Only do this in -g mode...
for (iterator VI = vmap.begin(), VE = vmap.end(); VI != VE; ++VI)
- DEBUG(DOUT << "Value still in symbol table! Type = '"
- << VI->getValue()->getType()->getDescription() << "' Name = '"
- << VI->getKeyData() << "'\n");
+ cerr << "Value still in symbol table! Type = '"
+ << VI->getValue()->getType()->getDescription() << "' Name = '"
+ << VI->getKeyData() << "'\n";
assert(vmap.empty() && "Values remain in symbol table!");
#endif
}
@@ -61,7 +61,7 @@
// Try inserting the name, assuming it won't conflict.
if (vmap.insert(V->Name)) {
- DOUT << " Inserted value: " << V->Name << ": " << *V << "\n";
+ //DOUT << " Inserted value: " << V->Name << ": " << *V << "\n";
return;
}
@@ -84,14 +84,14 @@
// Newly inserted name. Success!
NewName.setValue(V);
V->Name = &NewName;
- DEBUG(DOUT << " Inserted value: " << UniqueName << ": " << *V << "\n");
+ //DEBUG(DOUT << " Inserted value: " << UniqueName << ": " << *V << "\n");
return;
}
}
}
void ValueSymbolTable::removeValueName(ValueName *V) {
- DEBUG(DOUT << " Removing Value: " << V->getKeyData() << "\n");
+ //DEBUG(DOUT << " Removing Value: " << V->getKeyData() << "\n");
// Remove the value from the plane.
vmap.remove(V);
}
@@ -104,8 +104,8 @@
ValueName &Entry = vmap.GetOrCreateValue(NameStart, NameStart+NameLen);
if (Entry.getValue() == 0) {
Entry.setValue(V);
- DEBUG(DOUT << " Inserted value: " << Entry.getKeyData() << ": "
- << *V << "\n");
+ //DEBUG(DOUT << " Inserted value: " << Entry.getKeyData() << ": "
+ // << *V << "\n");
return &Entry;
}
@@ -123,7 +123,7 @@
if (NewName.getValue() == 0) {
// Newly inserted name. Success!
NewName.setValue(V);
- DEBUG(DOUT << " Inserted value: " << UniqueName << ": " << *V << "\n");
+ //DEBUG(DOUT << " Inserted value: " << UniqueName << ": " << *V << "\n");
return &NewName;
}
}
@@ -133,10 +133,10 @@
// dump - print out the symbol table
//
void ValueSymbolTable::dump() const {
- DOUT << "ValueSymbolTable:\n";
+ //DOUT << "ValueSymbolTable:\n";
for (const_iterator I = begin(), E = end(); I != E; ++I) {
- DOUT << " '" << I->getKeyData() << "' = ";
+ //DOUT << " '" << I->getKeyData() << "' = ";
I->getValue()->dump();
- DOUT << "\n";
+ //DOUT << "\n";
}
}
More information about the llvm-commits
mailing list