DOUT still evaluates side effects, even though it doesn't print. This means

that disassembleBuffer will be called even if NDEBUG, but the result will
be ignored.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-01-20 20:51:43 +00:00
parent 466207a3eb
commit c5633c235e

View File

@ -866,6 +866,7 @@ bool JITEmitter::finishFunction(MachineFunction &F) {
<< Relocations.size() << " relocations\n";
Relocations.clear();
#ifndef NDEBUG
DOUT << "Disassembled code:\n"
#if defined(__i386__)
<< disassembleBuffer(FnStart, FnEnd-FnStart,
@ -875,6 +876,7 @@ bool JITEmitter::finishFunction(MachineFunction &F) {
Disassembler::X86_64, (uint64_t)FnStart);
#else
<< "N/A\n";
#endif
#endif
return false;