Changes in directory llvm/lib/Target/PowerPC:
PPCRegisterInfo.cpp updated: 1.51 -> 1.52 PPCRegisterInfo.h updated: 1.11 -> 1.12 --- Log message: Expose base register for DwarfWriter. Refactor code accordingly. --- Diffs of the changes: (+4 -11) PPCRegisterInfo.cpp | 11 ++--------- PPCRegisterInfo.h | 4 ++-- 2 files changed, 4 insertions(+), 11 deletions(-) Index: llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp diff -u llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.51 llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.52 --- llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.51 Mon Mar 27 14:18:45 2006 +++ llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp Tue Mar 28 07:48:33 2006 @@ -447,15 +447,8 @@ } } -void PPCRegisterInfo::getLocation(MachineFunction &MF, unsigned Index, - MachineLocation &ML) const { - MachineFrameInfo *MFI = MF.getFrameInfo(); - bool FP = hasFP(MF); - - // FIXME - Needs to handle register variables. - // FIXME - Faking that llvm number is same as gcc numbering. - ML.set(getDwarfRegNum(FP ? PPC::R31 : PPC::R1), - MFI->getObjectOffset(Index) + MFI->getStackSize()); +unsigned PPCRegisterInfo::getFrameRegister(MachineFunction &MF) const { + return getDwarfRegNum(hasFP(MF) ? PPC::R31 : PPC::R1); } #include "PPCGenRegisterInfo.inc" Index: llvm/lib/Target/PowerPC/PPCRegisterInfo.h diff -u llvm/lib/Target/PowerPC/PPCRegisterInfo.h:1.11 llvm/lib/Target/PowerPC/PPCRegisterInfo.h:1.12 --- llvm/lib/Target/PowerPC/PPCRegisterInfo.h:1.11 Thu Mar 23 12:12:57 2006 +++ llvm/lib/Target/PowerPC/PPCRegisterInfo.h Tue Mar 28 07:48:33 2006 @@ -56,8 +56,8 @@ void emitPrologue(MachineFunction &MF) const; void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const; - void getLocation(MachineFunction &MF, unsigned Index, - MachineLocation &ML) const; + // Debug information queries. + unsigned getFrameRegister(MachineFunction &MF) const; }; } // end namespace llvm _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits