diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-10 18:58:29 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-10 18:58:29 +0000 |
commit | a439ee027bc908cd18e75703370174e053699b8a (patch) | |
tree | 23f6c5e18fad705b3749d8e1961dea9abf4a6674 /unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp | |
parent | 84232681cc559cec8feab3a1467dc8235cebd113 (diff) |
Fix unit tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp')
-rw-r--r-- | unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp b/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp index 1007ae1cc5..8fa5c4c107 100644 --- a/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp +++ b/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp @@ -65,7 +65,7 @@ struct RecordingJITEventListener : public JITEventListener { class JITEventListenerTest : public testing::Test { protected: JITEventListenerTest() - : M(new Module("module", *new LLVMContext())), + : M(new Module("module", getGlobalContext())), EE(ExecutionEngine::createJIT(new ExistingModuleProvider(M))) { } @@ -75,7 +75,7 @@ class JITEventListenerTest : public testing::Test { Function *buildFunction(Module *M) { Function *Result = Function::Create( - TypeBuilder<int32_t(int32_t), false>::get(), + TypeBuilder<int32_t(int32_t), false>::get(getGlobalContext()), GlobalValue::ExternalLinkage, "id", M); Value *Arg = Result->arg_begin(); BasicBlock *BB = BasicBlock::Create("entry", Result); |