diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-23 04:02:03 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 04:02:03 +0000 |
| commit | 78683a7013a320d4750db49aadd7edc81842463e (patch) | |
| tree | 238ec295867d2ee3fca4e601a02fe4ad521b83e4 /llvm/lib/VMCore/Constants.cpp | |
| parent | 213a9f933df3417903aae72f6a21e2b3f4ebdba7 (diff) | |
| download | bcm5719-llvm-78683a7013a320d4750db49aadd7edc81842463e.tar.gz bcm5719-llvm-78683a7013a320d4750db49aadd7edc81842463e.zip | |
switch a couple things off std::ostream
llvm-svn: 79816
Diffstat (limited to 'llvm/lib/VMCore/Constants.cpp')
| -rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index 7490b27729b..fd3266140c1 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/lib/VMCore/Constants.cpp @@ -11,8 +11,8 @@ // //===----------------------------------------------------------------------===// -#include "LLVMContextImpl.h" #include "llvm/Constants.h" +#include "LLVMContextImpl.h" #include "ConstantFold.h" #include "llvm/DerivedTypes.h" #include "llvm/GlobalValue.h" @@ -27,6 +27,7 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MathExtras.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/System/Mutex.h" #include "llvm/System/RWMutex.h" #include "llvm/System/Threading.h" @@ -110,10 +111,11 @@ void Constant::destroyConstantImpl() { while (!use_empty()) { Value *V = use_back(); #ifndef NDEBUG // Only in -g mode... - if (!isa<Constant>(V)) - DOUT << "While deleting: " << *this - << "\n\nUse still stuck around after Def is destroyed: " - << *V << "\n\n"; + if (!isa<Constant>(V)) { + errs() << "While deleting: " << *this + << "\n\nUse still stuck around after Def is destroyed: " + << *V << "\n\n"; + } #endif assert(isa<Constant>(V) && "References remain to Constant being destroyed"); Constant *CV = cast<Constant>(V); |

