summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/Orc
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-11-03 16:25:20 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-11-03 16:25:20 +0000
commit2f344637d61b9721858db5f180d0b76a5e994334 (patch)
tree95fb5b2393d487b705758e69f71f9e221d47da7a /llvm/unittests/ExecutionEngine/Orc
parent96a9d8c8e5c083ca8150ec21ca98c4511b93849d (diff)
downloadbcm5719-llvm-2f344637d61b9721858db5f180d0b76a5e994334.tar.gz
bcm5719-llvm-2f344637d61b9721858db5f180d0b76a5e994334.zip
Revert "[Orc] Directly emit machine code for the x86 resolver block and trampolines."
This reverts commit r251933. It broke the build of examples/Kaleidoscope/Orc/fully_lazy/toy.cpp. llvm-svn: 251937
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc')
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/CompileOnDemandLayerTest.cpp4
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/CompileOnDemandLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/CompileOnDemandLayerTest.cpp
index 078cbdaa300..ecfefe47c36 100644
--- a/llvm/unittests/ExecutionEngine/Orc/CompileOnDemandLayerTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/CompileOnDemandLayerTest.cpp
@@ -19,11 +19,11 @@ namespace {
class DummyCallbackManager : public orc::JITCompileCallbackManagerBase {
public:
DummyCallbackManager()
- : JITCompileCallbackManagerBase(0), NextStubAddress(0),
+ : JITCompileCallbackManagerBase(0, 0), NextStubAddress(0),
UniversalCompile([]() { return 0; }) {
}
- CompileCallbackInfo getCompileCallback() override {
+ CompileCallbackInfo getCompileCallback(LLVMContext &Context) override {
return CompileCallbackInfo(++NextStubAddress, UniversalCompile);
}
public:
diff --git a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
index 2957a3c1570..095d42599bf 100644
--- a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
@@ -82,7 +82,7 @@ TEST_F(OrcCAPIExecutionTest, TestEagerIRCompilation) {
return;
LLVMOrcJITStackRef JIT =
- LLVMOrcCreateInstance(wrap(TM.get()));
+ LLVMOrcCreateInstance(wrap(TM.get()), LLVMGetGlobalContext());
std::unique_ptr<Module> M = createTestModule(TM->getTargetTriple());
@@ -106,7 +106,7 @@ TEST_F(OrcCAPIExecutionTest, TestLazyIRCompilation) {
return;
LLVMOrcJITStackRef JIT =
- LLVMOrcCreateInstance(wrap(TM.get()));
+ LLVMOrcCreateInstance(wrap(TM.get()), LLVMGetGlobalContext());
std::unique_ptr<Module> M = createTestModule(TM->getTargetTriple());
@@ -130,7 +130,7 @@ TEST_F(OrcCAPIExecutionTest, TestDirectCallbacksAPI) {
return;
LLVMOrcJITStackRef JIT =
- LLVMOrcCreateInstance(wrap(TM.get()));
+ LLVMOrcCreateInstance(wrap(TM.get()), LLVMGetGlobalContext());
LLVMOrcGetMangledSymbol(JIT, &testFuncName, "testFunc");
OpenPOWER on IntegriCloud