summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit7476fa445672333a766866debf2fed569dd408d9 (patch)
treef6be21d0f1efa7329f5277940eda0a805628b014 /llvm/lib
parentdca38eec0d1aca440385539b845592322953f9f4 (diff)
downloadbcm5719-llvm-7476fa445672333a766866debf2fed569dd408d9.tar.gz
bcm5719-llvm-7476fa445672333a766866debf2fed569dd408d9.zip
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. llvm-svn: 33408
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
index d9fd82dee70..176c22a028c 100644
--- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud