diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-07-08 21:59:57 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-07-08 21:59:57 +0000 |
commit | 70415d97a84fa557048feadafbacc1b08fc0695c (patch) | |
tree | d64dd69a67c8c9c357d503f8795e60f968b762bb /llvm/lib/ExecutionEngine/Interpreter | |
parent | 0380851130cafa4cda99e923fdc97c7a2c1eaf27 (diff) | |
download | llvm-70415d97a84fa557048feadafbacc1b08fc0695c.zip llvm-70415d97a84fa557048feadafbacc1b08fc0695c.tar.gz llvm-70415d97a84fa557048feadafbacc1b08fc0695c.tar.bz2 |
Add an option to allocate JITed global data separately from code. By
default, this option is not enabled to support clients who rely on
this behavior.
Fixes http://llvm.org/PR4483
A patch to allocate additional memory for globals after we run out is
forthcoming.
Patch by Reid Kleckner!
llvm-svn: 75059
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp index d7f38ef..902f676 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp @@ -34,7 +34,8 @@ extern "C" void LLVMLinkInInterpreter() { } /// create - Create a new interpreter object. This can never fail. /// ExecutionEngine *Interpreter::create(ModuleProvider *MP, std::string* ErrStr, - CodeGenOpt::Level OptLevel /*unused*/) { + CodeGenOpt::Level OptLevel, /*unused*/ + bool GVsWithCode /* unused */) { // Tell this ModuleProvide to materialize and release the module if (!MP->materializeModule(ErrStr)) // We got an error, just return 0 @@ -98,4 +99,3 @@ Interpreter::runFunction(Function *F, return ExitValue; } - diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h index 6b13c90..d56161f 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -108,7 +108,8 @@ public: /// create - Create an interpreter ExecutionEngine. This can never fail. /// static ExecutionEngine *create(ModuleProvider *M, std::string *ErrorStr = 0, - CodeGenOpt::Level = CodeGenOpt::Default); + CodeGenOpt::Level = CodeGenOpt::Default, + bool GVsWithCode = true); /// run - Start execution with the specified function and arguments. /// |