[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp AlphaRegisterInfo.h
Jim Laskey
jlaskey at apple.com
Tue Mar 28 05:48:51 PST 2006
Changes in directory llvm/lib/Target/Alpha:
AlphaRegisterInfo.cpp updated: 1.38 -> 1.39
AlphaRegisterInfo.h updated: 1.10 -> 1.11
---
Log message:
Expose base register for DwarfWriter. Refactor code accordingly.
---
Diffs of the changes: (+4 -12)
AlphaRegisterInfo.cpp | 12 ++----------
AlphaRegisterInfo.h | 4 ++--
2 files changed, 4 insertions(+), 12 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
diff -u llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.38 llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.39
--- llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.38 Mon Mar 27 14:18:45 2006
+++ llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp Tue Mar 28 07:48:33 2006
@@ -354,16 +354,8 @@
}
}
-void AlphaRegisterInfo::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 ? Alpha::R15 : Alpha::R30),
- MFI->getObjectOffset(Index) + MFI->getStackSize());
+unsigned AlphaRegisterInfo::getFrameRegister(MachineFunction &MF) const {
+ return getDwarfRegNum(hasFP(MF) ? Alpha::R15 : Alpha::R30);
}
#include "AlphaGenRegisterInfo.inc"
Index: llvm/lib/Target/Alpha/AlphaRegisterInfo.h
diff -u llvm/lib/Target/Alpha/AlphaRegisterInfo.h:1.10 llvm/lib/Target/Alpha/AlphaRegisterInfo.h:1.11
--- llvm/lib/Target/Alpha/AlphaRegisterInfo.h:1.10 Thu Mar 23 12:12:57 2006
+++ llvm/lib/Target/Alpha/AlphaRegisterInfo.h Tue Mar 28 07:48:33 2006
@@ -53,8 +53,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;
static std::string getPrettyName(unsigned reg);
};
More information about the llvm-commits
mailing list