diff options
author | Eric Christopher <echristo@apple.com> | 2009-11-17 21:58:16 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2009-11-17 21:58:16 +0000 |
commit | b064d5efec51117f9819c7ffabb60970549025b1 (patch) | |
tree | ffd061c9069b4940a9f10b8db2c889867791f740 /lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 9007bcee6efaa3d528edd8e47cfeb9a2fe47071a (diff) | |
download | external_llvm-b064d5efec51117f9819c7ffabb60970549025b1.zip external_llvm-b064d5efec51117f9819c7ffabb60970549025b1.tar.gz external_llvm-b064d5efec51117f9819c7ffabb60970549025b1.tar.bz2 |
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.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index f73c92d..cb30748 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; } } |