Revert r218778 while investigating buldbot breakage.
[oota-llvm.git] / lib / Target / AArch64 / AArch64InstrInfo.cpp
index f984eb1ad15e719de9a7d6d877822f52bf414788..2f633c21787e3c0a771a8b413989720dd87db10d 100644 (file)
@@ -1444,15 +1444,16 @@ bool AArch64InstrInfo::shouldScheduleAdjacent(MachineInstr *First,
   }
 }
 
-MachineInstr *AArch64InstrInfo::emitFrameIndexDebugValue(
-    MachineFunction &MF, int FrameIx, uint64_t Offset, const MDNode *Var,
-    const MDNode *Expr, DebugLoc DL) const {
+MachineInstr *AArch64InstrInfo::emitFrameIndexDebugValue(MachineFunction &MF,
+                                                         int FrameIx,
+                                                         uint64_t Offset,
+                                                         const MDNode *MDPtr,
+                                                         DebugLoc DL) const {
   MachineInstrBuilder MIB = BuildMI(MF, DL, get(AArch64::DBG_VALUE))
                                 .addFrameIndex(FrameIx)
                                 .addImm(0)
                                 .addImm(Offset)
-                                .addMetadata(Var)
-                                .addMetadata(Expr);
+                                .addMetadata(MDPtr);
   return &*MIB;
 }