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

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 09:27:39 PST 2018


dschuff added a comment.

I think LLD should probably default to no gc, and in general to minimal/most simple options, and the smarts should be in the driver. I think this matches other targets, and I think it also matches (or at least, should match) the way we have options the frontend/backend vs the driver; i.e. IIRC the driver has logic to pass `-ffunction-sections` and other codegen options to the frontend. So basically all the special logic goes in one place.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D42511





More information about the llvm-commits mailing list