Add doInitialization/doFinalization to DataLayoutPass.
[oota-llvm.git] / tools / llc / llc.cpp
index 0dbe215cef7b430137718792cd09c77aa54e99ba..fe4d9ac4f195d4aff16d194249e69d7494965754 100644 (file)
@@ -307,7 +307,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
   // Add the target data from the target machine, if it exists, or the module.
   if (const DataLayout *DL = Target.getSubtargetImpl()->getDataLayout())
     mod->setDataLayout(DL);
-  PM.add(new DataLayoutPass(mod));
+  PM.add(new DataLayoutPass());
 
   if (RelaxAll.getNumOccurrences() > 0 &&
       FileType != TargetMachine::CGFT_ObjectFile)