Make isLegalAddressingMode() taking DataLayout as an argument
[oota-llvm.git] / lib / Target / Hexagon / HexagonISelLowering.h
index a0adc80750b7f6643b8dfd485fa11e5c56ade5ab..ba8b9cd9fe5cd4f550220f0efc0d460791181b22 100644 (file)
@@ -198,8 +198,8 @@ bool isPositiveHalfWord(SDNode *N);
     /// The type may be VoidTy, in which case only return true if the addressing
     /// mode is legal for a load/store of any legal type.
     /// TODO: Handle pre/postinc as well.
-    bool isLegalAddressingMode(const AddrMode &AM, Type *Ty,
-                               unsigned AS) const override;
+    bool isLegalAddressingMode(const DataLayout &DL, const AddrMode &AM,
+                               Type *Ty, unsigned AS) const override;
     bool isFPImmLegal(const APFloat &Imm, EVT VT) const override;
 
     /// isLegalICmpImmediate - Return true if the specified immediate is legal