[WebAssembly] Add support for bitcode archive members
authorSam Clegg <sbc@chromium.org>
Thu, 28 Jun 2018 17:04:58 +0000 (17:04 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 28 Jun 2018 17:04:58 +0000 (17:04 +0000)
commitce004bfe35c20d227865605427a11ff90ccb23b3
tree3860ac0f4012651820b01211552863326a4e5968
parentda5e7e11d1072ea13460f0b4ca77b7de35bf2bb8
[WebAssembly] Add support for bitcode archive members

This change effects the behavior of --export-all. Previously
--export-all would only effect symbols that survived GC. Now
--export-all will prevent any non-local symbols from being GCed.

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

llvm-svn: 335878
lld/test/wasm/export-all.ll
lld/test/wasm/lto/Inputs/archive.ll [new file with mode: 0644]
lld/test/wasm/lto/archive.ll [new file with mode: 0644]
lld/wasm/InputFiles.cpp
lld/wasm/LTO.cpp
lld/wasm/MarkLive.cpp
lld/wasm/Symbols.cpp
lld/wasm/Symbols.h
lld/wasm/Writer.cpp