[PATCH] D34228: Move clearOutputSections before sortSections

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 14 17:36:35 PDT 2017


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: ELF/LinkerScript.cpp:771-772
+    auto *ISD = make<InputSectionDescription>("");
+    for (InputSection *IS : Sec->Sections)
+      ISD->Sections.push_back(IS);
+    Cmd->Commands.push_back(ISD);
----------------
Can this be just `ISD->Sections = Sec->Sections`?


https://reviews.llvm.org/D34228





More information about the llvm-commits mailing list