[lld] r328195 - [ELF] - Apply clang-format. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 22 06:47:56 PDT 2018


Author: grimar
Date: Thu Mar 22 06:47:56 2018
New Revision: 328195

URL: http://llvm.org/viewvc/llvm-project?rev=328195&view=rev
Log:
[ELF] - Apply clang-format. NFC.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=328195&r1=328194&r2=328195&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Mar 22 06:47:56 2018
@@ -282,10 +282,9 @@ template <class ELFT> static void create
   // If there is a SECTIONS command and a .data.rel.ro section name use name
   // .data.rel.ro.bss so that we match in the .data.rel.ro output section.
   // This makes sure our relro is contiguous.
-  bool HasDataRelRo =
-      Script->HasSectionsCommand && findSection(".data.rel.ro");
-  InX::BssRelRo = make<BssSection>(
-      HasDataRelRo ? ".data.rel.ro.bss" : ".bss.rel.ro", 0, 1);
+  bool HasDataRelRo = Script->HasSectionsCommand && findSection(".data.rel.ro");
+  InX::BssRelRo =
+      make<BssSection>(HasDataRelRo ? ".data.rel.ro.bss" : ".bss.rel.ro", 0, 1);
   Add(InX::BssRelRo);
 
   // Add MIPS-specific sections.
@@ -2024,12 +2023,13 @@ template <class ELFT> void Writer<ELFT>:
   // space in the file so Sec->Offset + Sec->Size can overlap with others.
   // If --oformat binary is specified only add SHF_ALLOC sections are added to
   // the output file so we skip any non-allocated sections in that case.
-  checkForSectionOverlap(
-      OutputSections, "file", [](const OutputSection *Sec) { return Sec->Offset; },
-      [](const OutputSection *Sec) {
-        return Sec->Type == SHT_NOBITS ||
-               (Config->OFormatBinary && (Sec->Flags & SHF_ALLOC) == 0);
-      });
+  checkForSectionOverlap(OutputSections, "file",
+                         [](const OutputSection *Sec) { return Sec->Offset; },
+                         [](const OutputSection *Sec) {
+                           return Sec->Type == SHT_NOBITS ||
+                                  (Config->OFormatBinary &&
+                                   (Sec->Flags & SHF_ALLOC) == 0);
+                         });
 
   // When linking with -r there is no need to check for overlapping virtual/load
   // addresses since those addresses will only be assigned when the final




More information about the llvm-commits mailing list