[lld] r293278 - [ELF] Fixed formatting. NFC

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 03:06:23 PST 2017


Author: evgeny777
Date: Fri Jan 27 05:06:23 2017
New Revision: 293278

URL: http://llvm.org/viewvc/llvm-project?rev=293278&view=rev
Log:
[ELF] Fixed formatting. NFC

Modified:
    lld/trunk/ELF/OutputSections.cpp

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=293278&r1=293277&r2=293278&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Fri Jan 27 05:06:23 2017
@@ -651,10 +651,10 @@ OutputSectionFactory<ELFT>::create(const
       error("Section has flags incompatible with others with the same name " +
             toString(C));
 
-     // Convert notbits to progbits if they are mixed. This happens is some
-     // linker scripts.
-     if (Sec->Type == SHT_NOBITS && C->Type == SHT_PROGBITS)
-       Sec->Type = SHT_PROGBITS;
+    // Convert notbits to progbits if they are mixed. This happens is some
+    // linker scripts.
+    if (Sec->Type == SHT_NOBITS && C->Type == SHT_PROGBITS)
+      Sec->Type = SHT_PROGBITS;
     if (!IsScripted && Sec->Type != C->Type &&
         !(Sec->Type == SHT_PROGBITS && C->Type == SHT_NOBITS))
       error("Section has different type from others with the same name " +




More information about the llvm-commits mailing list