[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Tue Jan 23 02:26:33 PST 2007
Changes in directory llvm/lib/ExecutionEngine/JIT:
JITEmitter.cpp updated: 1.127 -> 1.128
---
Log message:
Moved disassembler to libSystem
---
Diffs of the changes: (+2 -10)
JITEmitter.cpp | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
Index: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.127 llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.128
--- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.127 Sat Jan 20 14:51:43 2007
+++ llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp Tue Jan 23 04:26:08 2007
@@ -27,8 +27,8 @@
#include "llvm/Target/TargetJITInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Support/Debug.h"
-#include "llvm/Support/Disassembler.h"
#include "llvm/Support/MutexGuard.h"
+#include "llvm/System/Disassembler.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/System/Memory.h"
#include <algorithm>
@@ -868,15 +868,7 @@
#ifndef NDEBUG
DOUT << "Disassembled code:\n"
-#if defined(__i386__)
- << disassembleBuffer(FnStart, FnEnd-FnStart,
- Disassembler::X86_32, (uint32_t)FnStart);
-#elif defined(__amd64__) || defined(__x86_64__)
- << disassembleBuffer(FnStart, FnEnd-FnStart,
- Disassembler::X86_64, (uint64_t)FnStart);
-#else
- << "N/A\n";
-#endif
+ << sys::disassembleBuffer(FnStart, FnEnd-FnStart, (uintptr_t)FnStart);
#endif
return false;
More information about the llvm-commits
mailing list