[PATCH] D42511: [WebAssembly] Add support for --gc-sections

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 15:51:54 PST 2018


sbc100 added a comment.

In https://reviews.llvm.org/D42511#992208, @alexcrichton wrote:

> FWIW I've just recently started testing LLD support w/ Rust code again and LLD master is working beautifully! The output of lld was a little large given the set of exported items, but @sunfish pointed me at this diff which worked perfectly for us as well! This managed to strip notably all the unused entries in the global table for `call_indirect` entries.
>
> One part I noticed though that this wasn't gc'ing was the `type` sections and declarations. The "hello world" output from my branch right now looks like https://gist.github.com/alexcrichton/c313672808533ff2f1d29538f390457a, which looks ideal from a "everything is gc'd point of view" except for the unused `type` declarations. Just wanted to let y'all know, but otherwise thanks so much for this!


Alex, GC of types is now landed too: https://reviews.llvm.org/D42747


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D42511





More information about the llvm-commits mailing list