From: Evan Cheng Date: Thu, 29 Apr 2010 01:13:30 +0000 (+0000) Subject: Frame index can be negative. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8601a3d4decff0a380e059b037dabf71075497d3;p=oota-llvm.git Frame index can be negative. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102577 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index bce79ec879b..143dbcc6f5f 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -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 { diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp index 8225083b640..a1938582ae0 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.cpp +++ b/lib/Target/ARM/ARMBaseInstrInfo.cpp @@ -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)) diff --git a/lib/Target/ARM/ARMBaseInstrInfo.h b/lib/Target/ARM/ARMBaseInstrInfo.h index fb0b3afff9c..7a5630ea37c 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.h +++ b/lib/Target/ARM/ARMBaseInstrInfo.h @@ -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; diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp index ec946d4efe1..ae1fbd8220a 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -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)); diff --git a/lib/Target/PowerPC/PPCInstrInfo.h b/lib/Target/PowerPC/PPCInstrInfo.h index 8580943041d..9fb6e7dce1f 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.h +++ b/lib/Target/PowerPC/PPCInstrInfo.h @@ -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; diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index 9a41a4a525d..a21bfb9ea9d 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -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; diff --git a/lib/Target/X86/X86InstrInfo.h b/lib/Target/X86/X86InstrInfo.h index 52a9050c1d1..df99c7fd63c 100644 --- a/lib/Target/X86/X86InstrInfo.h +++ b/lib/Target/X86/X86InstrInfo.h @@ -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;