[lld] r286261 - Don't add null and discarded sections to the global list.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 18:02:19 PST 2016


On 8 November 2016 at 14:41, Rui Ueyama <ruiu at google.com> wrote:
> Thanks! This is a nice change. I wonder if we could remove dead sections
> from the list as well. This will remove all "S->Live" checks, but it might
> slows it down a little bit because we have to shift section pointers in the
> vector.

I took a very quick look at it. For just gc-sections it should be
easy. I am still not very familiar with linker scripts, so I stopped
when I noticed that /DISCARD/ uses Live too.

Cheers,
Rafael


More information about the llvm-commits mailing list