[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcRegisterInfo.cpp SparcRegisterInfo.h
Jim Laskey
jlaskey at apple.com
Tue Mar 28 05:48:51 PST 2006
Changes in directory llvm/lib/Target/Sparc:
SparcRegisterInfo.cpp updated: 1.39 -> 1.40
SparcRegisterInfo.h updated: 1.10 -> 1.11
---
Log message:
Expose base register for DwarfWriter. Refactor code accordingly.
---
Diffs of the changes: (+4 -11)
SparcRegisterInfo.cpp | 11 ++---------
SparcRegisterInfo.h | 4 ++--
2 files changed, 4 insertions(+), 11 deletions(-)
Index: llvm/lib/Target/Sparc/SparcRegisterInfo.cpp
diff -u llvm/lib/Target/Sparc/SparcRegisterInfo.cpp:1.39 llvm/lib/Target/Sparc/SparcRegisterInfo.cpp:1.40
--- llvm/lib/Target/Sparc/SparcRegisterInfo.cpp:1.39 Mon Mar 27 14:18:45 2006
+++ llvm/lib/Target/Sparc/SparcRegisterInfo.cpp Tue Mar 28 07:48:33 2006
@@ -200,15 +200,8 @@
BuildMI(MBB, MBBI, SP::RESTORErr, 2, SP::G0).addReg(SP::G0).addReg(SP::G0);
}
-void SparcRegisterInfo::getLocation(MachineFunction &MF, unsigned Index,
- MachineLocation &ML) const {
- assert(0 && "Needs to be defined for target");
- MachineFrameInfo *MFI = MF.getFrameInfo();
-
- // FIXME - Needs to handle register variables.
- // FIXME - Faking that llvm number is same as gcc numbering.
- ML.set(getDwarfRegNum(SP::G1),
- MFI->getObjectOffset(Index) + MFI->getStackSize());
+unsigned SparcRegisterInfo::getFrameRegister(MachineFunction &MF) const {
+ return getDwarfRegNum(SP::G1);
}
#include "SparcGenRegisterInfo.inc"
Index: llvm/lib/Target/Sparc/SparcRegisterInfo.h
diff -u llvm/lib/Target/Sparc/SparcRegisterInfo.h:1.10 llvm/lib/Target/Sparc/SparcRegisterInfo.h:1.11
--- llvm/lib/Target/Sparc/SparcRegisterInfo.h:1.10 Thu Mar 23 12:12:57 2006
+++ llvm/lib/Target/Sparc/SparcRegisterInfo.h Tue Mar 28 07:48:33 2006
@@ -57,8 +57,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
More information about the llvm-commits
mailing list