[WebAssembly] Implement NO_STRIP
authorDan Gohman <dan433584@gmail.com>
Thu, 29 Aug 2019 22:41:05 +0000 (22:41 +0000)
committerDan Gohman <dan433584@gmail.com>
Thu, 29 Aug 2019 22:41:05 +0000 (22:41 +0000)
commit7cb9c8a506f3490755db20c0a9298e9caa6fb89d
tree7eaaceb822a69acc342ce077e3ecfcda1c521d0b
parentda84b688f9160bcd00ef46932e752aa33af94bc7
[WebAssembly] Implement NO_STRIP

This patch implements support for the NO_STRIP flag, which will allow
__attribute__((used)) to be implemented.

This accompanies https://reviews.llvm.org/D62542, which moves to setting the
NO_STRIP flag, and will continue to set EXPORTED for Emscripten targets for
compatibility.

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

llvm-svn: 370416
lld/docs/ReleaseNotes.rst
lld/docs/WebAssembly.rst
lld/test/wasm/export.ll
lld/wasm/LTO.cpp
lld/wasm/MarkLive.cpp
lld/wasm/Symbols.cpp
lld/wasm/Symbols.h