Add DEBUG_MCJIT_REFLECT and DEBUG_MCJIT_DISASSEMBLE.
Add disassembler support for MCJTI. Courtesy of outstanding intern
logan: To use disassembler for MCJIT, you have to change
USE_DISASSEMBLER to 1, and touch /data/local/tmp/mcjit-dis.s.
The disassembled assembly will be printed to
/data/local/tmp/mcjit-dis.s.
Change-Id: I488fc60ae399e7298f1360ac7219af46a980b577
diff --git a/lib/ExecutionEngine/Compiler.h b/lib/ExecutionEngine/Compiler.h
index dd2a50c..ecd7235 100644
--- a/lib/ExecutionEngine/Compiler.h
+++ b/lib/ExecutionEngine/Compiler.h
@@ -104,6 +104,14 @@
// Loaded and relocated executable
RSExecRef mRSExecutable;
+
+#if USE_DISASSEMBLER
+ void Disassemble(llvm::Target const *Target,
+ llvm::TargetMachine *TM,
+ std::string const &name,
+ unsigned char const *code,
+ size_t size);
+#endif
#endif
BCCSymbolLookupFn mpSymbolLookupFn;