diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-03-06 05:32:48 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-03-06 05:32:48 +0000 |
commit | c6551ffdd5bdb9b199fbfe5f72a8003425a72006 (patch) | |
tree | 58d49de652967e151e10216b03241fcddef3663f /lib/ExecutionEngine | |
parent | 415c1f7438619434d74b76223674228779930ae3 (diff) | |
download | external_llvm-c6551ffdd5bdb9b199fbfe5f72a8003425a72006.zip external_llvm-c6551ffdd5bdb9b199fbfe5f72a8003425a72006.tar.gz external_llvm-c6551ffdd5bdb9b199fbfe5f72a8003425a72006.tar.bz2 |
Implement PR1240
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index a52ce86d..99dd0c9 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -876,8 +876,9 @@ bool JITEmitter::finishFunction(MachineFunction &F) { Relocations.clear(); #ifndef NDEBUG - DOUT << "Disassembled code:\n" - << sys::disassembleBuffer(FnStart, FnEnd-FnStart, (uintptr_t)FnStart); + if (sys::hasDisassembler()) + DOUT << "Disassembled code:\n" + << sys::disassembleBuffer(FnStart, FnEnd-FnStart, (uintptr_t)FnStart); #endif return false; |