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 | 700d08e18d777c146265da5d00247b26cecead4b (patch) | |
tree | b4a97b39f151cfc6aa4889a1ef02f51e575e8483 /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 50ee5e7ddb4b56b703359bd0e50e786013f494d6 (diff) | |
download | bcm5719-llvm-700d08e18d777c146265da5d00247b26cecead4b.tar.gz bcm5719-llvm-700d08e18d777c146265da5d00247b26cecead4b.zip |
Add ability to set code model within the execution engine builders
and creation interfaces.
llvm-svn: 89151
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index f73c92d79c3..cb307483f7f 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/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; } } |