Frame index can be negative.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 29 Apr 2010 01:13:30 +0000 (01:13 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 29 Apr 2010 01:13:30 +0000 (01:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102577 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetInstrInfo.h
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMBaseInstrInfo.h
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.h
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h

index bce79ec879bae72be05b5a6a726d97746a4c43ad..143dbcc6f5febafb07521eb33c35e3cc8ee1b254 100644 (file)
@@ -372,7 +372,7 @@ public:
   /// target-specific AsmPrinter code as well; you will probably get invalid
   /// assembly output if you don't.
   virtual MachineInstr *emitFrameIndexDebugValue(MachineFunction &MF,
-                                                 unsigned FrameIx,
+                                                 int FrameIx,
                                                  uint64_t Offset,
                                                  const MDNode *MDPtr,
                                                  DebugLoc dl) const {
index 8225083b6405d78767bfea8d139d56a029c94380..a1938582ae0547ca03edff0c914b2980bc9b1395 100644 (file)
@@ -819,7 +819,7 @@ loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
 
 MachineInstr*
 ARMBaseInstrInfo::emitFrameIndexDebugValue(MachineFunction &MF,
-                                           unsigned FrameIx, uint64_t Offset,
+                                           int FrameIx, uint64_t Offset,
                                            const MDNode *MDPtr,
                                            DebugLoc DL) const {
   MachineInstrBuilder MIB = BuildMI(MF, DL, get(ARM::DBG_VALUE))
index fb0b3afff9c0d10938fdfe03dfeec7bf900d9192..7a5630ea37c5fedb9ea786f60b956240d679a39d 100644 (file)
@@ -270,7 +270,7 @@ public:
                                     const TargetRegisterClass *RC) const;
 
   virtual MachineInstr *emitFrameIndexDebugValue(MachineFunction &MF,
-                                                 unsigned FrameIx,
+                                                 int FrameIx,
                                                  uint64_t Offset,
                                                  const MDNode *MDPtr,
                                                  DebugLoc DL) const;
index ec946d4efe1e4f1a0625d1f1f8ebaff387089850..ae1fbd8220a7f61e8591d4916ae6ebf68f8bea1b 100644 (file)
@@ -647,7 +647,7 @@ PPCInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
 
 MachineInstr*
 PPCInstrInfo::emitFrameIndexDebugValue(MachineFunction &MF,
-                                       unsigned FrameIx, uint64_t Offset,
+                                       int FrameIx, uint64_t Offset,
                                        const MDNode *MDPtr,
                                        DebugLoc DL) const {
   MachineInstrBuilder MIB = BuildMI(MF, DL, get(PPC::DBG_VALUE));
index 8580943041d40bd2da9b0e4add63ef441152b260..9fb6e7dce1f723937e0d0007f303d4430a30b14d 100644 (file)
@@ -127,7 +127,7 @@ public:
                                     const TargetRegisterClass *RC) const;
   
   virtual MachineInstr *emitFrameIndexDebugValue(MachineFunction &MF,
-                                                 unsigned FrameIx,
+                                                 int FrameIx,
                                                  uint64_t Offset,
                                                  const MDNode *MDPtr,
                                                  DebugLoc DL) const;
index 9a41a4a525df9a5dd9b2e73e152c8ed0122a9396..a21bfb9ea9d0204cfb5eeeb0ba8f49c96f98cc50 100644 (file)
@@ -2322,7 +2322,7 @@ bool X86InstrInfo::restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
 
 MachineInstr*
 X86InstrInfo::emitFrameIndexDebugValue(MachineFunction &MF,
-                                       unsigned FrameIx, uint64_t Offset,
+                                       int FrameIx, uint64_t Offset,
                                        const MDNode *MDPtr,
                                        DebugLoc DL) const {
   X86AddressMode AM;
index 52a9050c1d1cfc565c934395ee7b859a5b42605d..df99c7fd63c4eb69f3ea7a554ed8c06bc8e290f6 100644 (file)
@@ -625,7 +625,7 @@ public:
   
   virtual
   MachineInstr *emitFrameIndexDebugValue(MachineFunction &MF,
-                                         unsigned FrameIx, uint64_t Offset,
+                                         int FrameIx, uint64_t Offset,
                                          const MDNode *MDPtr,
                                          DebugLoc DL) const;