[ELF] --gc-sections: combine two iterations over inputSections
authorFangrui Song <i@maskray.me>
Thu, 23 Dec 2021 17:53:08 +0000 (09:53 -0800)
committerFangrui Song <i@maskray.me>
Thu, 23 Dec 2021 17:53:08 +0000 (09:53 -0800)
commit4374824ccf6e7ae68264d996a9ae5bb5e3be7fc5
tree22bd42f5dbd312fa225f572345dd5aac845d0cef
parent4bf31659fac73ed6ebeb4b4d95dc41aac5dcd666
[ELF] --gc-sections: combine two iterations over inputSections

There is a slight speed-up.
lld/ELF/MarkLive.cpp