mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118027 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ab3d00e535
commit
c8821046f8
@ -822,9 +822,8 @@ void DwarfDebug::addAddress(DIE *Die, unsigned Attribute,
|
|||||||
const TargetRegisterInfo *RI = Asm->TM.getRegisterInfo();
|
const TargetRegisterInfo *RI = Asm->TM.getRegisterInfo();
|
||||||
unsigned Reg = RI->getDwarfRegNum(Location.getReg(), false);
|
unsigned Reg = RI->getDwarfRegNum(Location.getReg(), false);
|
||||||
DIEBlock *Block = new (DIEValueAllocator) DIEBlock();
|
DIEBlock *Block = new (DIEValueAllocator) DIEBlock();
|
||||||
const TargetRegisterInfo *TRI = Asm->TM.getRegisterInfo();
|
|
||||||
|
|
||||||
if (TRI->getFrameRegister(*Asm->MF) == Location.getReg()
|
if (RI->getFrameRegister(*Asm->MF) == Location.getReg()
|
||||||
&& Location.getOffset()) {
|
&& Location.getOffset()) {
|
||||||
// If variable offset is based in frame register then use fbreg.
|
// If variable offset is based in frame register then use fbreg.
|
||||||
addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_fbreg);
|
addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_fbreg);
|
||||||
|
Loading…
Reference in New Issue
Block a user