mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Expose base register for DwarfWriter. Refactor code accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27225 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -200,15 +200,8 @@ void SparcRegisterInfo::emitEpilogue(MachineFunction &MF,
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user