aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-20 20:51:43 +0000
committerChris Lattner <sabre@nondot.org>2007-01-20 20:51:43 +0000
commitc5633c235e94f69c6a77e894bcc84d8ba71106f0 (patch)
tree411ed52f909b77c7aeb8cb23cd7a108e65743ad4
parent466207a3ebe9409b84e58e991e8e0e20441a3e4c (diff)
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
-rw-r--r--lib/ExecutionEngine/JIT/JITEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index d9fd82dee7..176c22a028 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,
@@ -876,6 +877,7 @@ bool JITEmitter::finishFunction(MachineFunction &F) {
#else
<< "N/A\n";
#endif
+#endif
return false;
}