summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2009-11-17 21:58:16 +0000
committerEric Christopher <echristo@apple.com>2009-11-17 21:58:16 +0000
commit88b5aca20a6dd0a8b15ff620bdee59aae567d245 (patch)
treeffd061c9069b4940a9f10b8db2c889867791f740 /lib/ExecutionEngine/ExecutionEngine.cpp
parent6c8a0715c40cf1d6465f732969c187910bf8d128 (diff)
downloadllvm-88b5aca20a6dd0a8b15ff620bdee59aae567d245.tar.gz
llvm-88b5aca20a6dd0a8b15ff620bdee59aae567d245.tar.bz2
llvm-88b5aca20a6dd0a8b15ff620bdee59aae567d245.tar.xz
Add ability to set code model within the execution engine builders
and creation interfaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index f73c92d79c..cb307483f7 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -40,7 +40,8 @@ ExecutionEngine *(*ExecutionEngine::JITCtor)(ModuleProvider *MP,
std::string *ErrorStr,
JITMemoryManager *JMM,
CodeGenOpt::Level OptLevel,
- bool GVsWithCode) = 0;
+ bool GVsWithCode,
+ CodeModel::Model CMM) = 0;
ExecutionEngine *(*ExecutionEngine::InterpCtor)(ModuleProvider *MP,
std::string *ErrorStr) = 0;
ExecutionEngine::EERegisterFn ExecutionEngine::ExceptionTableRegister = 0;
@@ -444,7 +445,7 @@ ExecutionEngine *EngineBuilder::create() {
if (ExecutionEngine::JITCtor) {
ExecutionEngine *EE =
ExecutionEngine::JITCtor(MP, ErrorStr, JMM, OptLevel,
- AllocateGVsWithCode);
+ AllocateGVsWithCode, CMModel);
if (EE) return EE;
}
}