Update variable name and reuse existing variable. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 23 Mar 2015 20:25:31 +0000 (20:25 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 23 Mar 2015 20:25:31 +0000 (20:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233014 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCDwarf.cpp

index ccfba6691e8a3b4a1d658b177f1d9133a4837f63..91b277cee5ca882ac73e3ad536a3f55869de49a7 100644 (file)
@@ -189,18 +189,18 @@ EmitDwarfLineTable(MCObjectStreamer *MCOS, const MCSection *Section,
   // correct place.
   MCOS->SwitchSection(Section);
 
-  MCContext &context = MCOS->getContext();
+  MCContext &Ctx = MCOS->getContext();
   // Create a symbol at the end of the section.
-  MCSymbol *SectionEnd = context.CreateTempSymbol();
+  MCSymbol *SectionEnd = Ctx.CreateTempSymbol();
   // Set the value of the symbol, as we are at the end of the section.
   MCOS->EmitLabel(SectionEnd);
 
   // Switch back the dwarf line section.
-  MCOS->SwitchSection(context.getObjectFileInfo()->getDwarfLineSection());
+  MCOS->SwitchSection(Ctx.getObjectFileInfo()->getDwarfLineSection());
 
-  const MCAsmInfo *asmInfo = MCOS->getContext().getAsmInfo();
+  const MCAsmInfo *AsmInfo = Ctx.getAsmInfo();
   MCOS->EmitDwarfAdvanceLineAddr(INT64_MAX, LastLabel, SectionEnd,
-                                 asmInfo->getPointerSize());
+                                 AsmInfo->getPointerSize());
 }
 
 //