[lld] r233418 - Fix formatting.

Rui Ueyama ruiu at google.com
Fri Mar 27 13:50:56 PDT 2015


Author: ruiu
Date: Fri Mar 27 15:50:56 2015
New Revision: 233418

URL: http://llvm.org/viewvc/llvm-project?rev=233418&view=rev
Log:
Fix formatting.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/HeaderChunks.h
    lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.h
    lld/trunk/lib/ReaderWriter/ELF/Writer.h

Modified: lld/trunk/lib/ReaderWriter/ELF/HeaderChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/HeaderChunks.h?rev=233418&r1=233417&r2=233418&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/HeaderChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/HeaderChunks.h Fri Mar 27 15:50:56 2015
@@ -33,9 +33,9 @@ public:
   void e_type(uint16_t type)           { _eh.e_type = type; }
   void e_machine(uint16_t machine)     { _eh.e_machine = machine; }
   void e_version(uint32_t version)     { _eh.e_version = version; }
-  void e_entry(int64_t entry)         { _eh.e_entry = entry; }
-  void e_phoff(int64_t phoff)         { _eh.e_phoff = phoff; }
-  void e_shoff(int64_t shoff)         { _eh.e_shoff = shoff; }
+  void e_entry(int64_t entry)          { _eh.e_entry = entry; }
+  void e_phoff(int64_t phoff)          { _eh.e_phoff = phoff; }
+  void e_shoff(int64_t shoff)          { _eh.e_shoff = shoff; }
   void e_flags(uint32_t flags)         { _eh.e_flags = flags; }
   void e_ehsize(uint16_t ehsize)       { _eh.e_ehsize = ehsize; }
   void e_phentsize(uint16_t phentsize) { _eh.e_phentsize = phentsize; }

Modified: lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.h?rev=233418&r1=233417&r2=233418&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.h Fri Mar 27 15:50:56 2015
@@ -214,25 +214,18 @@ public:
 
   int64_t atomflags() const {
     switch (_atomflags) {
-
     case DefinedAtom::permUnknown:
       return permUnknown;
-
     case DefinedAtom::permRWX:
       return permRWX;
-
     case DefinedAtom::permR_X:
       return permRX;
-
     case DefinedAtom::permR__:
       return permR;
-
     case DefinedAtom::permRW_L:
       return permRWL;
-
     case DefinedAtom::permRW_:
       return permRW;
-
     case DefinedAtom::perm___:
     default:
       return permNonAccess;

Modified: lld/trunk/lib/ReaderWriter/ELF/Writer.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Writer.h?rev=233418&r1=233417&r2=233418&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Writer.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Writer.h Fri Mar 27 15:50:56 2015
@@ -19,7 +19,7 @@ namespace elf {
 ///        various kinds of ELF files.
 class ELFWriter : public Writer {
 public:
-  ELFWriter() { }
+  ELFWriter() {}
 
 public:
   /// \brief builds the chunks that needs to be written to the output





More information about the llvm-commits mailing list