[llvm-commits] [llvm] r74622 - in /llvm/trunk/unittests: ExecutionEngine/JIT/JITEventListenerTest.cpp VMCore/PassManagerTest.cpp
Owen Anderson
resistor at mac.com
Wed Jul 1 11:14:20 PDT 2009
Author: resistor
Date: Wed Jul 1 13:14:20 2009
New Revision: 74622
URL: http://llvm.org/viewvc/llvm-project?rev=74622&view=rev
Log:
Fix unit tests for LLVMContext+Module.
Modified:
llvm/trunk/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp
llvm/trunk/unittests/VMCore/PassManagerTest.cpp
Modified: llvm/trunk/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp?rev=74622&r1=74621&r2=74622&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp Wed Jul 1 13:14:20 2009
@@ -9,6 +9,7 @@
#include "llvm/ExecutionEngine/JITEventListener.h"
+#include "llvm/LLVMContext.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/ModuleProvider.h"
@@ -64,7 +65,7 @@
class JITEventListenerTest : public testing::Test {
protected:
JITEventListenerTest()
- : M(new Module("module")),
+ : M(new Module("module", new LLVMContext())),
EE(ExecutionEngine::createJIT(new ExistingModuleProvider(M))) {
}
Modified: llvm/trunk/unittests/VMCore/PassManagerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/VMCore/PassManagerTest.cpp?rev=74622&r1=74621&r2=74622&view=diff
==============================================================================
--- llvm/trunk/unittests/VMCore/PassManagerTest.cpp (original)
+++ llvm/trunk/unittests/VMCore/PassManagerTest.cpp Wed Jul 1 13:14:20 2009
@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Module.h"
+#include "llvm/LLVMContext.h"
#include "llvm/PassManager.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Pass.h"
@@ -271,7 +272,7 @@
char OnTheFlyTest::ID=0;
TEST(PassManager, RunOnce) {
- Module M("test-once");
+ Module M("test-once", new LLVMContext());
struct ModuleNDNM *mNDNM = new ModuleNDNM();
struct ModuleDNM *mDNM = new ModuleDNM();
struct ModuleNDM *mNDM = new ModuleNDM();
@@ -295,7 +296,7 @@
}
TEST(PassManager, ReRun) {
- Module M("test-rerun");
+ Module M("test-rerun", new LLVMContext());
struct ModuleNDNM *mNDNM = new ModuleNDNM();
struct ModuleDNM *mDNM = new ModuleDNM();
struct ModuleNDM *mNDM = new ModuleNDM();
@@ -386,7 +387,7 @@
Module* makeLLVMModule() {
// Module Construction
- Module* mod = new Module("test-mem");
+ Module* mod = new Module("test-mem", new LLVMContext());
mod->setDataLayout("e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-"
"i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-"
"a0:0:64-s0:64:64-f80:128:128");
More information about the llvm-commits
mailing list