diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 00:23:56 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 00:23:56 +0000 |
commit | 0dd5e1ed393451be89d6bc8ff54901a359e5bf49 (patch) | |
tree | 7e42230fc39ac6c506a2bb5358bacbf4c7d93450 /llvm/lib/Target/X86 | |
parent | f2972561367ecc6b5e03cb05a8a604427ceec6f6 (diff) | |
download | bcm5719-llvm-0dd5e1ed393451be89d6bc8ff54901a359e5bf49.tar.gz bcm5719-llvm-0dd5e1ed393451be89d6bc8ff54901a359e5bf49.zip |
More migration to raw_ostream, the water has dried up around the iostream hole.
- Some clients which used DOUT have moved to DEBUG. We are deprecating the
"magic" DOUT behavior which avoided calling printing functions when the
statement was disabled. In addition to being unnecessary magic, it had the
downside of leaving code in -Asserts builds, and of hiding potentially
unnecessary computations.
llvm-svn: 77019
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r-- | llvm/lib/Target/X86/X86CodeEmitter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86CodeEmitter.cpp b/llvm/lib/Target/X86/X86CodeEmitter.cpp index 825c51cf43d..2ada46de446 100644 --- a/llvm/lib/Target/X86/X86CodeEmitter.cpp +++ b/llvm/lib/Target/X86/X86CodeEmitter.cpp @@ -32,6 +32,7 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetOptions.h" using namespace llvm; @@ -130,7 +131,8 @@ bool Emitter<CodeEmitter>::runOnMachineFunction(MachineFunction &MF) { IsPIC = TM.getRelocationModel() == Reloc::PIC_; do { - DOUT << "JITTing function '" << MF.getFunction()->getName() << "'\n"; + DEBUG(errs() << "JITTing function '" + << MF.getFunction()->getName() << "'\n"); MCE.startFunction(MF); for (MachineFunction::iterator MBB = MF.begin(), E = MF.end(); MBB != E; ++MBB) { @@ -813,7 +815,7 @@ void Emitter<CodeEmitter>::emitInstruction( if (!Desc->isVariadic() && CurOp != NumOps) { #ifndef NDEBUG - cerr << "Cannot encode: " << MI << "\n"; + errs() << "Cannot encode: " << MI << "\n"; #endif llvm_unreachable(0); } |