HomePhabricator

[WebAssembly] Make __attribute__((used)) not imply export.
Audit Requiredda84b688f916

Authored by sunfish on Aug 29 2019, 3:40 PM.

Description

[WebAssembly] Make attribute((used)) not imply export.

Add an WASM_SYMBOL_NO_STRIP flag, so that attribute((used)) doesn't
need to imply exporting. When targeting Emscripten, have
WASM_SYMBOL_NO_STRIP imply exporting.

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

llvm-svn: 370415