Changes in directory llvm/lib/Target/IA64:
IA64RegisterInfo.cpp updated: 1.15 -> 1.16 IA64RegisterInfo.h updated: 1.5 -> 1.6 --- Log message: Expose base register for DwarfWriter. Refactor code accordingly. --- Diffs of the changes: (+4 -12) IA64RegisterInfo.cpp | 13 ++----------- IA64RegisterInfo.h | 3 ++- 2 files changed, 4 insertions(+), 12 deletions(-) Index: llvm/lib/Target/IA64/IA64RegisterInfo.cpp diff -u llvm/lib/Target/IA64/IA64RegisterInfo.cpp:1.15 llvm/lib/Target/IA64/IA64RegisterInfo.cpp:1.16 --- llvm/lib/Target/IA64/IA64RegisterInfo.cpp:1.15 Mon Mar 27 14:18:45 2006 +++ llvm/lib/Target/IA64/IA64RegisterInfo.cpp Tue Mar 28 07:48:33 2006 @@ -329,18 +329,9 @@ } -void IA64RegisterInfo::getLocation(MachineFunction &MF, unsigned Index, - MachineLocation &ML) const { - assert(0 && "Needs to be defined for target"); - 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 ? IA64::r5 : IA64::r12), - MFI->getObjectOffset(Index) + MFI->getStackSize()); +unsigned IA64RegisterInfo::getFrameRegister(MachineFunction &MF) const { + return getDwarfRegNum(hasFP(MF) ? IA64::r5 : IA64::r12); } - #include "IA64GenRegisterInfo.inc" Index: llvm/lib/Target/IA64/IA64RegisterInfo.h diff -u llvm/lib/Target/IA64/IA64RegisterInfo.h:1.5 llvm/lib/Target/IA64/IA64RegisterInfo.h:1.6 --- llvm/lib/Target/IA64/IA64RegisterInfo.h:1.5 Thu Mar 23 12:12:57 2006 +++ llvm/lib/Target/IA64/IA64RegisterInfo.h Tue Mar 28 07:48:33 2006 @@ -49,7 +49,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 llvm namespace _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits