summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-10 18:58:29 +0000
committerOwen Anderson <resistor@mac.com>2009-07-10 18:58:29 +0000
commitc490dee828b8c72da58f01134b5277f7b7439b70 (patch)
tree1310aea09942fc95c63fba6d165a820268fff54a /llvm/unittests/ExecutionEngine
parente3c4765bac4a4be5f0bcbf91c1a02c7c79a3b77a (diff)
downloadbcm5719-llvm-c490dee828b8c72da58f01134b5277f7b7439b70.tar.gz
bcm5719-llvm-c490dee828b8c72da58f01134b5277f7b7439b70.zip
Fix unit tests.
llvm-svn: 75262
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
-rw-r--r--llvm/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp
index 1007ae1cc58..8fa5c4c107d 100644
--- a/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud