[WebAssembly] Add --export-default/--no-export-default options
authorSam Clegg <sbc@chromium.org>
Tue, 25 Sep 2018 21:50:15 +0000 (21:50 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 25 Sep 2018 21:50:15 +0000 (21:50 +0000)
commit4e62418b25de4dcf476c54e77e48abd39821332b
tree3239595be09cd6dc5f76b6081166e4bc9ab54b89
parent24b6d3690c3b83bc0c588f2240c97116e5bdd8bb
[WebAssembly] Add --export-default/--no-export-default options

These option control weather or not symbols marked as visibility
default are exported in the output binary.

By default this is true, but emscripten prefers to control the
exported symbol list explicitly at link time and ignore the
symbol attributes.

Differential Revision: https://reviews.llvm.org/D52003

llvm-svn: 343034
lld/test/wasm/visibility-hidden.ll
lld/wasm/Config.h
lld/wasm/Driver.cpp
lld/wasm/Options.td
lld/wasm/Symbols.cpp