Add doInitialization/doFinalization to DataLayoutPass.
[oota-llvm.git] / lib / ExecutionEngine / MCJIT / MCJIT.cpp
index 8ff41ffd7d677f51af72dca49822c7ae5043f91a..e441ec8d1a33e3a7d1c966f804495cded640ebe9 100644 (file)
@@ -133,7 +133,7 @@ std::unique_ptr<ObjectBufferStream> MCJIT::emitObject(Module *M) {
   PassManager PM;
 
   M->setDataLayout(TM->getSubtargetImpl()->getDataLayout());
-  PM.add(new DataLayoutPass(M));
+  PM.add(new DataLayoutPass());
 
   // The RuntimeDyld will take ownership of this shortly
   std::unique_ptr<ObjectBufferStream> CompiledObject(new ObjectBufferStream());