[PATCH] D23603: [ELF] - Linkerscript: merge section attributes when create output section.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 22 02:03:06 PDT 2016


grimar added a comment.

Ping


================
Comment at: ELF/LinkerScript.cpp:316
@@ -302,2 +315,3 @@
       OutSec->addSection(S);
+      updateFlags<ELFT>(OutSec, S);
     }
----------------
ruiu wrote:
> S is a `InputSectionBase<ELFT> *`. How does it work?
Do you mean call of updateFlags ? ArrayRef<InputSectionBase<ELFT> *> argument can be constructed from std::vector and as well as from single pointer:

```
    /// Construct an ArrayRef from a single element.
    /*implicit*/ ArrayRef(const T &OneElt)
      : Data(&OneElt), Length(1) {}

```


https://reviews.llvm.org/D23603





More information about the llvm-commits mailing list