Separate OLD_JIT code.
Either move Old JIT code into OldJIT directory or wrap them
with #if USE_OLD_JIT, so that we can remove Old JIT easily
in the future.
Change-Id: Id820cc2143ac4b7685460ba38258c664f4da495e
diff --git a/lib/ExecutionEngine/ScriptCompiled.cpp b/lib/ExecutionEngine/ScriptCompiled.cpp
index f5ea2e0..bb3c79a 100644
--- a/lib/ExecutionEngine/ScriptCompiled.cpp
+++ b/lib/ExecutionEngine/ScriptCompiled.cpp
@@ -17,12 +17,15 @@
#include "ScriptCompiled.h"
#include "bcc_internal.h"
-#include "ContextManager.h"
+#if USE_OLD_JIT
+#include "OldJIT/ContextManager.h"
+#endif
#include "DebugHelper.h"
namespace bcc {
ScriptCompiled::~ScriptCompiled() {
+#if USE_OLD_JIT
// Deallocate the BCC context
if (mContext) {
ContextManager::get().deallocateContext(mContext);
@@ -35,6 +38,7 @@
delete I->second;
}
}
+#endif
}
void ScriptCompiled::getExportVarList(size_t varListSize, void **varList) {