Move most user of TargetMachine::getDataLayout to the Module one
[oota-llvm.git] / lib / Target / SystemZ / SystemZAsmPrinter.cpp
index 3dca7bd89f05e8f94168566d750d6e2973ffdfcc..75273114d62fc24587d1734680af3c8b397139b1 100644 (file)
@@ -288,7 +288,7 @@ EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) {
     MCSymbolRefExpr::create(getSymbol(ZCPV->getGlobalValue()),
                             getModifierVariantKind(ZCPV->getModifier()),
                             OutContext);
-  uint64_t Size = TM.getDataLayout()->getTypeAllocSize(ZCPV->getType());
+  uint64_t Size = getDataLayout().getTypeAllocSize(ZCPV->getType());
 
   OutStreamer->EmitValue(Expr, Size);
 }