aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/ValueSymbolTable.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-25 20:42:59 +0000
committerChris Lattner <sabre@nondot.org>2007-02-25 20:42:59 +0000
commit3f3098c8ca2752f2032ea47665b0c400e271ee0d (patch)
tree0c0f4a243263e881eb3d5356679301845f6c890d /lib/VMCore/ValueSymbolTable.cpp
parent4ddf7a4ca69c3f5872b568bcb523d491b29a2592 (diff)
disable some noisy debug output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ValueSymbolTable.cpp')
-rw-r--r--lib/VMCore/ValueSymbolTable.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/VMCore/ValueSymbolTable.cpp b/lib/VMCore/ValueSymbolTable.cpp
index e31410c29c..f0d6823822 100644
--- a/lib/VMCore/ValueSymbolTable.cpp
+++ b/lib/VMCore/ValueSymbolTable.cpp
@@ -23,9 +23,9 @@ using namespace llvm;
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 @@ void ValueSymbolTable::reinsertValue(Value* V) {
// 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 @@ void ValueSymbolTable::reinsertValue(Value* V) {
// 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 *ValueSymbolTable::createValueName(const char *NameStart,
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 @@ ValueName *ValueSymbolTable::createValueName(const char *NameStart,
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 @@ ValueName *ValueSymbolTable::createValueName(const char *NameStart,
// 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";
}
}