diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-17 08:03:48 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-17 08:03:48 +0000 |
commit | 6a462f1e995587fb421caae39d7cc93b4764c8a1 (patch) | |
tree | a1953a4200835fa3c04bfb4a1e7f66b88e1b6226 /llvm/lib/VMCore/ValueSymbolTable.cpp | |
parent | c8e81b8d48878b6421d1450e467ba056c6e4a0fc (diff) | |
download | bcm5719-llvm-6a462f1e995587fb421caae39d7cc93b4764c8a1.tar.gz bcm5719-llvm-6a462f1e995587fb421caae39d7cc93b4764c8a1.zip |
Removed iostream #includes. Replaced std::cerr with DOUT.
llvm-svn: 31814
Diffstat (limited to 'llvm/lib/VMCore/ValueSymbolTable.cpp')
-rw-r--r-- | llvm/lib/VMCore/ValueSymbolTable.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/llvm/lib/VMCore/ValueSymbolTable.cpp b/llvm/lib/VMCore/ValueSymbolTable.cpp index 1e343e74747..6efb9983874 100644 --- a/llvm/lib/VMCore/ValueSymbolTable.cpp +++ b/llvm/lib/VMCore/ValueSymbolTable.cpp @@ -15,9 +15,8 @@ #include "llvm/Type.h" #include "llvm/ValueSymbolTable.h" #include "llvm/ADT/StringExtras.h" +#include "llvm/Support/Debug.h" #include <algorithm> -#include <iostream> - using namespace llvm; #define DEBUG_SYMBOL_TABLE 0 @@ -29,9 +28,9 @@ ValueSymbolTable::~ValueSymbolTable() { bool LeftoverValues = true; for (iterator VI = vmap.begin(), VE = vmap.end(); VI != VE; ++VI) if (!isa<Constant>(VI->second) ) { - std::cerr << "Value still in symbol table! Type = '" - << VI->second->getType()->getDescription() << "' Name = '" - << VI->first << "'\n"; + DOUT << "Value still in symbol table! Type = '" + << VI->second->getType()->getDescription() << "' Name = '" + << VI->first << "'\n"; LeftoverValues = false; } assert(LeftoverValues && "Values remain in symbol table!"); @@ -89,7 +88,7 @@ void ValueSymbolTable::insert(Value* V) { #if DEBUG_SYMBOL_TABLE dump(); - std::cerr << " Inserting value: " << UniqueName << ": " << V->dump() << "\n"; + DOUT << " Inserting value: " << UniqueName << ": " << V->dump() << "\n"; #endif // Insert the vmap entry @@ -105,7 +104,7 @@ bool ValueSymbolTable::erase(Value *V) { #if DEBUG_SYMBOL_TABLE dump(); - std::cerr << " Removing Value: " << Entry->second->getName() << "\n"; + DOUT << " Removing Value: " << Entry->second->getName() << "\n"; #endif // Remove the value from the plane... @@ -153,14 +152,14 @@ bool ValueSymbolTable::rename(Value *V, const std::string &name) { // DumpVal - a std::for_each function for dumping a value // static void DumpVal(const std::pair<const std::string, Value *> &V) { - std::cerr << " '" << V.first << "' = "; + DOUT << " '" << V.first << "' = "; V.second->dump(); - std::cerr << "\n"; + DOUT << "\n"; } // dump - print out the symbol table // void ValueSymbolTable::dump() const { - std::cerr << "ValueSymbolTable:\n"; + DOUT << "ValueSymbolTable:\n"; for_each(vmap.begin(), vmap.end(), DumpVal); } |