Fix unit tests for LLVMContext+Module.
[oota-llvm.git] / unittests / ExecutionEngine / JIT / JITEventListenerTest.cpp
index 3c9beebba651d1ae72c07d705a9ad96f668a1035..1bcf0ab1227fe9bb97c367b80d22df782728332e 100644 (file)
@@ -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 @@ struct RecordingJITEventListener : public JITEventListener {
 class JITEventListenerTest : public testing::Test {
  protected:
   JITEventListenerTest()
-      : M(new Module("module")),
+      : M(new Module("module", new LLVMContext())),
         EE(ExecutionEngine::createJIT(new ExistingModuleProvider(M))) {
   }