Simplify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118027 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2010-11-02 17:37:00 +00:00
parent ab3d00e535
commit c8821046f8

View File

@ -822,9 +822,8 @@ void DwarfDebug::addAddress(DIE *Die, unsigned Attribute,
const TargetRegisterInfo *RI = Asm->TM.getRegisterInfo();
unsigned Reg = RI->getDwarfRegNum(Location.getReg(), false);
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()) {
// If variable offset is based in frame register then use fbreg.
addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_fbreg);