Extract duplicated disassembler.
Change-Id: I6c607a0ed881dbd808ec43ec65e88f4ef06dea90
diff --git a/lib/ExecutionEngine/Compiler.h b/lib/ExecutionEngine/Compiler.h
index 11acaf7..7d4ef42 100644
--- a/lib/ExecutionEngine/Compiler.h
+++ b/lib/ExecutionEngine/Compiler.h
@@ -26,6 +26,10 @@
#include "librsloader.h"
#endif
+#if USE_DISASSEMBLER
+#include "Disassembler/Disassembler.h"
+#endif
+
#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/SmallVector.h"
@@ -106,14 +110,6 @@
// 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;
@@ -129,6 +125,10 @@
static void GlobalInitialization();
+ static std::string const &getTargetTriple() {
+ return Triple;
+ }
+
void setCachePath(const char *cachePath) {
mCachePath = cachePath;
return;