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

Jason W Kim jason.w.kim.2009 at gmail.com
Mon Nov 22 14:05:16 PST 2010


Author: jasonwkim
Date: Mon Nov 22 16:05:16 2010
New Revision: 119986

URL: http://llvm.org/viewvc/llvm-project?rev=119986&view=rev
Log:
Fixed some style issues (no _, no spc after !)


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=119986&r1=119985&r2=119986&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Mon Nov 22 16:05:16 2010
@@ -129,11 +129,11 @@
       ELFRelocationEntry()
         : r_offset(0), Index(0), Type(0), Symbol(0), r_addend(0) {}
 
-      ELFRelocationEntry(uint64_t RelocOffset, int _Index,
-                         unsigned _Type, const MCSymbol *_Symbol,
+      ELFRelocationEntry(uint64_t RelocOffset, int Idx,
+                         unsigned RelType, const MCSymbol *Sym,
                          uint64_t Addend)
-        : r_offset(RelocOffset), Index(_Index), Type(_Type),
-          Symbol(_Symbol), r_addend(Addend) {}
+        : r_offset(RelocOffset), Index(Idx), Type(RelType),
+          Symbol(Sym), r_addend(Addend) {}
 
       // Support lexicographic sorting.
       bool operator<(const ELFRelocationEntry &RE) const {
@@ -1529,7 +1529,7 @@
   uint64_t RelocOffset = Layout.getFragmentOffset(Fragment) +
     Fixup.getOffset();
 
-  if (! HasRelocationAddend) Addend = 0;
+  if (!HasRelocationAddend) Addend = 0;
   ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend);
   Relocations[Fragment->getParent()].push_back(ERE);
 }
@@ -1741,7 +1741,7 @@
   uint64_t RelocOffset = Layout.getFragmentOffset(Fragment) +
     Fixup.getOffset();
 
-  if (! HasRelocationAddend) Addend = 0;
+  if (!HasRelocationAddend) Addend = 0;
   ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend);
   Relocations[Fragment->getParent()].push_back(ERE);
 }





More information about the llvm-commits mailing list