[llvm-commits] [llvm] r118027 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Devang Patel dpatel at apple.com
Tue Nov 2 10:37:00 PDT 2010


Author: dpatel
Date: Tue Nov  2 12:37:00 2010
New Revision: 118027

URL: http://llvm.org/viewvc/llvm-project?rev=118027&view=rev
Log:
Simplify.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=118027&r1=118026&r2=118027&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Nov  2 12:37:00 2010
@@ -822,9 +822,8 @@
   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);





More information about the llvm-commits mailing list