josephwen Adds caching for MC JIT.
New MCCacheReader in addition to the classic JIT's CacheReader.[cpp|h].
New MCCacheWriter in addition to the classic JIT's CacheReader.[cpp|h].
Change-Id: Iffd490caf25136d52cefc1c6bc2a78fa991236cd
diff --git a/lib/ExecutionEngine/ScriptCompiled.h b/lib/ExecutionEngine/ScriptCompiled.h
index 35c9b83..66efe3a 100644
--- a/lib/ExecutionEngine/ScriptCompiled.h
+++ b/lib/ExecutionEngine/ScriptCompiled.h
@@ -131,6 +131,15 @@
char *getContext() {
return mContext;
}
+#if USE_MCJIT
+ const char *getELF() const {
+ return &*mCompiler.getELF().begin();
+ }
+
+ size_t getELFSize() const {
+ return mCompiler.getELF().size();
+ }
+#endif
void registerSymbolCallback(BCCSymbolLookupFn pFn, void *pContext) {
mCompiler.registerSymbolCallback(pFn, pContext);