mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
These two calls were grabbing the same register info. Unify them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223502 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a283409bc
commit
7a76d76e0c
@ -463,12 +463,11 @@ bool DwarfUnit::addRegisterOpPiece(DIELoc &TheDie, unsigned Reg,
|
||||
/// addRegisterOffset - Add register offset.
|
||||
bool DwarfUnit::addRegisterOffset(DIELoc &TheDie, unsigned Reg,
|
||||
int64_t Offset) {
|
||||
const TargetRegisterInfo *RI = Asm->TM.getSubtargetImpl()->getRegisterInfo();
|
||||
int DWReg = RI->getDwarfRegNum(Reg, false);
|
||||
const TargetRegisterInfo *TRI = Asm->TM.getSubtargetImpl()->getRegisterInfo();
|
||||
int DWReg = TRI->getDwarfRegNum(Reg, false);
|
||||
if (DWReg < 0)
|
||||
return false;
|
||||
|
||||
const TargetRegisterInfo *TRI = Asm->TM.getSubtargetImpl()->getRegisterInfo();
|
||||
if (Reg == TRI->getFrameRegister(*Asm->MF))
|
||||
// If variable offset is based in frame register then use fbreg.
|
||||
addUInt(TheDie, dwarf::DW_FORM_data1, dwarf::DW_OP_fbreg);
|
||||
|
Loading…
Reference in New Issue
Block a user