From c5633c235e94f69c6a77e894bcc84d8ba71106f0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 20 Jan 2007 20:51:43 +0000 Subject: [PATCH] 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 --- lib/ExecutionEngine/JIT/JITEmitter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index d9fd82dee70..176c22a028c 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -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; -- 2.34.1