From: Chris Lattner Date: Sun, 25 Feb 2007 20:42:59 +0000 (+0000) Subject: disable some noisy debug output X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3f3098c8ca2752f2032ea47665b0c400e271ee0d;p=oota-llvm.git disable some noisy debug output git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34606 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/ValueSymbolTable.cpp b/lib/VMCore/ValueSymbolTable.cpp index e31410c29cd..f0d68238229 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"; } }