Make isLegalAddressingMode() taking DataLayout as an argument
[oota-llvm.git] / lib / Target / Mips / MipsISelLowering.cpp
index 6ead6b7f342cd12609ded90430f373eefe0bb31b..f95150f6a9c115ea6d77a650fcf06d8e3cbca83f 100644 (file)
@@ -3550,8 +3550,8 @@ void MipsTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
   TargetLowering::LowerAsmOperandForConstraint(Op, Constraint, Ops, DAG);
 }
 
-bool MipsTargetLowering::isLegalAddressingMode(const AddrMode &AM,
-                                               Type *Ty,
+bool MipsTargetLowering::isLegalAddressingMode(const DataLayout &DL,
+                                               const AddrMode &AM, Type *Ty,
                                                unsigned AS) const {
   // No global is ever allowed as a base.
   if (AM.BaseGV)