diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2015-01-26 23:16:03 +0000 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-01-26 23:16:03 +0000 |
commit | 5bed289bf5964ab52b81bbac8e2ad80aa066148f (patch) | |
tree | 6e360bfc3c312e4088e909c7ce9b1efd6e765323 | |
parent | 222cefa80a5ddb143d5cfabb7c15bce96089d3c0 (diff) |
LLVM 3.6: Update llvm::EngineBuilder call to account for unique_ptr args
Also, removed call to .setUseMCJIT() method (removed in LLVM 3.6).
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
-rw-r--r-- | src/core/cpu/program.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/cpu/program.cpp b/src/core/cpu/program.cpp index 7eb632c..0ee68c4 100644 --- a/src/core/cpu/program.cpp +++ b/src/core/cpu/program.cpp @@ -153,12 +153,11 @@ bool CPUProgram::initJIT() // Create the JIT std::string err; - p_jit = llvm::EngineBuilder(p_module) - .setErrorStr(&err) - .setUseMCJIT(true) - .setMCJITMemoryManager(new ClientMemoryManager()) - .create(); - + p_jit = llvm::EngineBuilder(std::unique_ptr<Module>(p_module)) + .setErrorStr(&err) + .setMCJITMemoryManager(std::unique_ptr<ClientMemoryManager> + (new ClientMemoryManager())) + .create(); if (!p_jit) { std::cout << "Unable to create a JIT: " << err << std::endl; |