[llvm-commits] [llvm] r131208 - /llvm/trunk/lib/MC/ELFObjectWriter.cpp

Matt Beaumont-Gay matthewbg at google.com
Wed May 11 16:34:51 PDT 2011


Author: matthewbg
Date: Wed May 11 18:34:51 2011
New Revision: 131208

URL: http://llvm.org/viewvc/llvm-project?rev=131208&view=rev
Log:
Remove an unused variable and move a couple others inside DEBUG.

Modified:
    llvm/trunk/lib/MC/ELFObjectWriter.cpp

Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=131208&r1=131207&r2=131208&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Wed May 11 18:34:51 2011
@@ -1291,16 +1291,16 @@
 
   const MCSectionELF &Section =
     static_cast<const MCSectionELF&>(Symbol.getSection());
-  const SectionKind secKind = Section.getKind();
-  const MCSymbolRefExpr::VariantKind Kind = Target.getSymA()->getKind();
-  MCSymbolRefExpr::VariantKind Kind2; 
-  Kind2 = Target.getSymB() ?  Target.getSymB()->getKind() :
-    MCSymbolRefExpr::VK_None;
   bool InNormalSection = true;
   unsigned RelocType = 0;
   RelocType = GetRelocTypeInner(Target, Fixup, IsPCRel);
 
-  DEBUG(dbgs() << "considering symbol "
+  DEBUG(
+      const MCSymbolRefExpr::VariantKind Kind = Target.getSymA()->getKind();
+      MCSymbolRefExpr::VariantKind Kind2;
+      Kind2 = Target.getSymB() ?  Target.getSymB()->getKind() :
+        MCSymbolRefExpr::VK_None;
+      dbgs() << "considering symbol "
         << Section.getSectionName() << "/"
         << Symbol.getName() << "/"
         << " Rel:" << (unsigned)RelocType





More information about the llvm-commits mailing list