diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 10:05:20 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 10:05:20 +0000 |
commit | b95c2fd2700a92a7b857ebd1ecf6c7d561d676d2 (patch) | |
tree | 0cb5e1ddf3413a1bba329020817c4931963efb18 | |
parent | 3f0e83067d7938f742d21e14fc87c006d2fc3161 (diff) | |
download | external_llvm-b95c2fd2700a92a7b857ebd1ecf6c7d561d676d2.zip external_llvm-b95c2fd2700a92a7b857ebd1ecf6c7d561d676d2.tar.gz external_llvm-b95c2fd2700a92a7b857ebd1ecf6c7d561d676d2.tar.bz2 |
Move more to raw_ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76964 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Value.cpp | 8 | ||||
-rw-r--r-- | lib/VMCore/ValueSymbolTable.cpp | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index a788652..71dec84 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -68,9 +68,9 @@ Value::~Value() { // a <badref> // if (!use_empty()) { - cerr << "While deleting: " << *VTy << " %" << getNameStr() << "\n"; + errs() << "While deleting: " << *VTy << " %" << getNameStr() << "\n"; for (use_iterator I = use_begin(), E = use_end(); I != E; ++I) - cerr << "Use still stuck around after Def is destroyed:" + errs() << "Use still stuck around after Def is destroyed:" << **I << "\n"; } #endif @@ -509,8 +509,8 @@ void ValueHandleBase::ValueIsDeleted(Value *V) { switch (ThisNode->getKind()) { case Assert: #ifndef NDEBUG // Only in -g mode... - cerr << "While deleting: " << *V->getType() << " %" << V->getNameStr() - << "\n"; + errs() << "While deleting: " << *V->getType() << " %" << V->getNameStr() + << "\n"; #endif llvm_unreachable("An asserting value handle still pointed to this" " value!"); diff --git a/lib/VMCore/ValueSymbolTable.cpp b/lib/VMCore/ValueSymbolTable.cpp index f87bb63..eae3bf2 100644 --- a/lib/VMCore/ValueSymbolTable.cpp +++ b/lib/VMCore/ValueSymbolTable.cpp @@ -17,15 +17,16 @@ #include "llvm/ValueSymbolTable.h" #include "llvm/ADT/SmallString.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/raw_ostream.h" using namespace llvm; // Class destructor ValueSymbolTable::~ValueSymbolTable() { #ifndef NDEBUG // Only do this in -g mode... for (iterator VI = vmap.begin(), VE = vmap.end(); VI != VE; ++VI) - cerr << "Value still in symbol table! Type = '" - << VI->getValue()->getType()->getDescription() << "' Name = '" - << VI->getKeyData() << "'\n"; + errs() << "Value still in symbol table! Type = '" + << VI->getValue()->getType()->getDescription() << "' Name = '" + << VI->getKeyData() << "'\n"; assert(vmap.empty() && "Values remain in symbol table!"); #endif } |