[llvm-commits] [llvm] r92664 - /llvm/trunk/lib/VMCore/TypeSymbolTable.cpp
David Greene
greened at obbligato.org
Mon Jan 4 17:30:14 PST 2010
Author: greened
Date: Mon Jan 4 19:30:14 2010
New Revision: 92664
URL: http://llvm.org/viewvc/llvm-project?rev=92664&view=rev
Log:
Change errs() to dbgs().
Modified:
llvm/trunk/lib/VMCore/TypeSymbolTable.cpp
Modified: llvm/trunk/lib/VMCore/TypeSymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/TypeSymbolTable.cpp?rev=92664&r1=92663&r2=92664&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/TypeSymbolTable.cpp (original)
+++ llvm/trunk/lib/VMCore/TypeSymbolTable.cpp Mon Jan 4 19:30:14 2010
@@ -15,6 +15,7 @@
#include "llvm/DerivedTypes.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
@@ -58,7 +59,7 @@
#if DEBUG_SYMBOL_TABLE
dump();
- errs() << " Removing Value: " << Result->getDescription() << "\n";
+ dbgs() << " Removing Value: " << Result->getDescription() << "\n";
#endif
tmap.erase(Entry);
@@ -67,7 +68,7 @@
// list...
if (Result->isAbstract()) {
#if DEBUG_ABSTYPE
- errs() << "Removing abstract type from symtab"
+ dbgs() << "Removing abstract type from symtab"
<< Result->getDescription()
<< "\n";
#endif
@@ -87,7 +88,7 @@
#if DEBUG_SYMBOL_TABLE
dump();
- errs() << " Inserted type: " << Name << ": " << T->getDescription() << "\n";
+ dbgs() << " Inserted type: " << Name << ": " << T->getDescription() << "\n";
#endif
} else {
// If there is a name conflict...
@@ -99,7 +100,7 @@
#if DEBUG_SYMBOL_TABLE
dump();
- errs() << " Inserting type: " << UniqueName << ": "
+ dbgs() << " Inserting type: " << UniqueName << ": "
<< T->getDescription() << "\n";
#endif
@@ -111,7 +112,7 @@
if (T->isAbstract()) {
cast<DerivedType>(T)->addAbstractTypeUser(this);
#if DEBUG_ABSTYPE
- errs() << "Added abstract type to ST: " << T->getDescription() << "\n";
+ dbgs() << "Added abstract type to ST: " << T->getDescription() << "\n";
#endif
}
}
@@ -127,14 +128,14 @@
for (iterator I = begin(), E = end(); I != E; ++I) {
if (I->second == (Type*)OldType) { // FIXME when Types aren't const.
#if DEBUG_ABSTYPE
- errs() << "Removing type " << OldType->getDescription() << "\n";
+ dbgs() << "Removing type " << OldType->getDescription() << "\n";
#endif
OldType->removeAbstractTypeUser(this);
I->second = (Type*)NewType; // TODO FIXME when types aren't const
if (NewType->isAbstract()) {
#if DEBUG_ABSTYPE
- errs() << "Added type " << NewType->getDescription() << "\n";
+ dbgs() << "Added type " << NewType->getDescription() << "\n";
#endif
cast<DerivedType>(NewType)->addAbstractTypeUser(this);
}
@@ -154,13 +155,13 @@
}
static void DumpTypes(const std::pair<const std::string, const Type*>& T ) {
- errs() << " '" << T.first << "' = ";
+ dbgs() << " '" << T.first << "' = ";
T.second->dump();
- errs() << "\n";
+ dbgs() << "\n";
}
void TypeSymbolTable::dump() const {
- errs() << "TypeSymbolPlane: ";
+ dbgs() << "TypeSymbolPlane: ";
for_each(tmap.begin(), tmap.end(), DumpTypes);
}
More information about the llvm-commits
mailing list