Move most user of TargetMachine::getDataLayout to the Module one
[oota-llvm.git] / lib / CodeGen / TargetLoweringBase.cpp
index ecfd65931574ea7a8500f8d6491ca75b08832db6..50240bf70461d4864fc24c259b713b64f8791282 100644 (file)
@@ -1149,7 +1149,7 @@ TargetLoweringBase::emitPatchPoint(MachineInstr *MI,
     }
     MachineMemOperand *MMO = MF.getMachineMemOperand(
         MachinePointerInfo::getFixedStack(FI), Flags,
-        TM.getDataLayout()->getPointerSize(), MFI.getObjectAlignment(FI));
+        MF.getDataLayout().getPointerSize(), MFI.getObjectAlignment(FI));
     MIB->addMemOperand(MF, MMO);
 
     // Replace the instruction and update the operand index.