[ELF] - Stop removing sections in removeUnusedSyntheticSections().
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 2 Oct 2017 09:11:13 +0000 (09:11 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 2 Oct 2017 09:11:13 +0000 (09:11 +0000)
commitba45584c4b664569adfb445508f5e7010fbf907e
tree387255588a5f28bf86d8938d21edf52472b04b4e
parent3bbbf3159010920f9959c2a9ad20ee537caa4b6f
[ELF] - Stop removing sections in removeUnusedSyntheticSections().

That makes code a bit more consistent. Instead of removing sections there
we can just mark them as dead. So that removeEmptyCommands() will
handle the rest.

Differential revision: https://reviews.llvm.org/D38393

llvm-svn: 314654
lld/ELF/LinkerScript.cpp
lld/ELF/Writer.cpp