diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-28 02:09:03 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-28 02:09:03 +0000 |
commit | 8f487662869d10c866b9ebdccb8f6a7509d3ab56 (patch) | |
tree | 6e496719e75da42552283d3ef6762797abddb030 /lib/VMCore/TypeSymbolTable.cpp | |
parent | d9fd2acc1f172e4b8c33c3562667102f9af4d28d (diff) | |
download | external_llvm-8f487662869d10c866b9ebdccb8f6a7509d3ab56.zip external_llvm-8f487662869d10c866b9ebdccb8f6a7509d3ab56.tar.gz external_llvm-8f487662869d10c866b9ebdccb8f6a7509d3ab56.tar.bz2 |
Changed to using LLVM streams.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/TypeSymbolTable.cpp')
-rw-r--r-- | lib/VMCore/TypeSymbolTable.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/VMCore/TypeSymbolTable.cpp b/lib/VMCore/TypeSymbolTable.cpp index b608c18..7af7bea 100644 --- a/lib/VMCore/TypeSymbolTable.cpp +++ b/lib/VMCore/TypeSymbolTable.cpp @@ -14,9 +14,8 @@ #include "llvm/TypeSymbolTable.h" #include "llvm/DerivedTypes.h" #include "llvm/ADT/StringExtras.h" -#include <iostream> +#include "llvm/Support/Streams.h" #include <algorithm> - using namespace llvm; #define DEBUG_SYMBOL_TABLE 0 @@ -67,7 +66,7 @@ Type* TypeSymbolTable::erase(iterator Entry) { #if DEBUG_SYMBOL_TABLE dump(); - std::cerr << " Removing Value: " << Result->getName() << "\n"; + llvm_cerr << " Removing Value: " << Result->getName() << "\n"; #endif tmap.erase(Entry); @@ -76,7 +75,7 @@ Type* TypeSymbolTable::erase(iterator Entry) { // list... if (Result->isAbstract()) { #if DEBUG_ABSTYPE - std::cerr << "Removing abstract type from symtab" << Result->getDescription()<<"\n"; + llvm_cerr << "Removing abstract type from symtab" << Result->getDescription()<<"\n"; #endif cast<DerivedType>(Result)->removeAbstractTypeUser(this); } @@ -96,7 +95,7 @@ void TypeSymbolTable::insert(const std::string& Name, const Type* T) { #if DEBUG_SYMBOL_TABLE dump(); - std::cerr << " Inserting type: " << UniqueName << ": " + llvm_cerr << " Inserting type: " << UniqueName << ": " << T->getDescription() << "\n"; #endif @@ -107,7 +106,7 @@ void TypeSymbolTable::insert(const std::string& Name, const Type* T) { if (T->isAbstract()) { cast<DerivedType>(T)->addAbstractTypeUser(this); #if DEBUG_ABSTYPE - std::cerr << "Added abstract type to ST: " << T->getDescription() << "\n"; + llvm_cerr << "Added abstract type to ST: " << T->getDescription() << "\n"; #endif } } @@ -153,14 +152,14 @@ void TypeSymbolTable::refineAbstractType(const DerivedType *OldType, for (iterator I = begin(), E = end(); I != E; ++I) { if (I->second == (Type*)OldType) { // FIXME when Types aren't const. #if DEBUG_ABSTYPE - std::cerr << "Removing type " << OldType->getDescription() << "\n"; + llvm_cerr << "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 - std::cerr << "Added type " << NewType->getDescription() << "\n"; + llvm_cerr << "Added type " << NewType->getDescription() << "\n"; #endif cast<DerivedType>(NewType)->addAbstractTypeUser(this); } @@ -180,13 +179,13 @@ void TypeSymbolTable::typeBecameConcrete(const DerivedType *AbsTy) { } static void DumpTypes(const std::pair<const std::string, const Type*>& T ) { - std::cerr << " '" << T.first << "' = "; + llvm_cerr << " '" << T.first << "' = "; T.second->dump(); - std::cerr << "\n"; + llvm_cerr << "\n"; } void TypeSymbolTable::dump() const { - std::cerr << "TypeSymbolPlane: "; + llvm_cerr << "TypeSymbolPlane: "; for_each(tmap.begin(), tmap.end(), DumpTypes); } |