[PATCH] D75536: [LLD] Add support for --unique option

Dave Bozier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 09:40:06 PST 2020


davidb updated this revision to Diff 247932.
davidb added a comment.

Fix lint checks


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75536/new/

https://reviews.llvm.org/D75536

Files:
  lld/ELF/LinkerScript.cpp


Index: lld/ELF/LinkerScript.cpp
===================================================================
--- lld/ELF/LinkerScript.cpp
+++ lld/ELF/LinkerScript.cpp
@@ -687,15 +687,14 @@
 
       if (config->unique) {
         v.push_back(createSection(s, name));
-      }
-      else {
+      } else {
         if (OutputSection *sec = findByName(sectionCommands, name)) {
           sec->recordSection(s);
         } else {
           if (OutputSection *os = addInputSec(map, s, name))
             v.push_back(os);
           assert(isa<MergeInputSection>(s) ||
-                s->getOutputSection()->sectionIndex == UINT32_MAX);
+                 s->getOutputSection()->sectionIndex == UINT32_MAX);
         }
       }
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75536.247932.patch
Type: text/x-patch
Size: 724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200303/0b79b17e/attachment.bin>


More information about the llvm-commits mailing list