[ELF] Refactor to remove loop copying all Sections in OS->finalize() [NFC]
authorPeter Smith <peter.smith@linaro.org>
Tue, 12 Dec 2017 13:38:51 +0000 (13:38 +0000)
committerPeter Smith <peter.smith@linaro.org>
Tue, 12 Dec 2017 13:38:51 +0000 (13:38 +0000)
commit2128df7e7ba35697ad749540b962c8170778e499
treef6140fa5423dd65e6124dcba4e8dd83e648817e2
parent03cbf468cdecc11ef2432a64722f761ea68239fb
[ELF] Refactor to remove loop copying all Sections in OS->finalize() [NFC]

Moving the SHF_LINK_ORDER processing out of OutputSection::finalize()
means that we no longer need to copy all InputSections as we now only need
the first one.

Differential Revision: https://reviews.llvm.org/D40966

llvm-svn: 320478
lld/ELF/OutputSections.cpp