Move DataLayout back to the TargetMachine from TargetSubtargetInfo
[oota-llvm.git] / tools / llc / llc.cpp
index 94199ddd10742b44f11dbe9bbf81354d76d14533..5565fb3b3ac36835a2df375b9be18d8e622ede9c 100644 (file)
@@ -304,7 +304,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
   PM.add(new TargetLibraryInfoWrapperPass(TLII));
 
   // Add the target data from the target machine, if it exists, or the module.
-  if (const DataLayout *DL = Target->getSubtargetImpl()->getDataLayout())
+  if (const DataLayout *DL = Target->getDataLayout())
     M->setDataLayout(DL);
   PM.add(new DataLayoutPass());