Add alignment value to allowsUnalignedMemoryAccess
[oota-llvm.git] / lib / Target / PowerPC / PPCISelLowering.cpp
index d63fac17306e22b06c6c3d32c5abd2df59d465da..537b80fa8fb145e39fccdf93160b81e13d8b6209 100644 (file)
@@ -9214,9 +9214,10 @@ bool PPCTargetLowering::isLegalAddImmediate(int64_t Imm) const {
   return isInt<16>(Imm) || isUInt<16>(Imm);
 }
 
-bool PPCTargetLowering::allowsUnalignedMemoryAccesses(EVT VT,
-                                                      unsigned,
-                                                      bool *Fast) const {
+bool PPCTargetLowering::allowsMisalignedMemoryAccesses(EVT VT,
+                                                       unsigned,
+                                                       unsigned,
+                                                       bool *Fast) const {
   if (DisablePPCUnaligned)
     return false;