diff options
author | Dan Gohman <dan433584@gmail.com> | 2019-08-29 22:40:00 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2019-08-29 22:40:00 +0000 |
commit | da84b688f9160bcd00ef46932e752aa33af94bc7 (patch) | |
tree | 0b4589181fa40626e1847fbd32a29e1c174dd182 /llvm/lib/MC/MCWasmStreamer.cpp | |
parent | 452e5647a5862599a679cf892777ff1ea45a6462 (diff) | |
download | bcm5719-llvm-da84b688f9160bcd00ef46932e752aa33af94bc7.tar.gz bcm5719-llvm-da84b688f9160bcd00ef46932e752aa33af94bc7.zip |
[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
Diffstat (limited to 'llvm/lib/MC/MCWasmStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCWasmStreamer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCWasmStreamer.cpp b/llvm/lib/MC/MCWasmStreamer.cpp index 86fa7219785..e7e96ecbb3a 100644 --- a/llvm/lib/MC/MCWasmStreamer.cpp +++ b/llvm/lib/MC/MCWasmStreamer.cpp @@ -122,7 +122,7 @@ bool MCWasmStreamer::EmitSymbolAttribute(MCSymbol *S, MCSymbolAttr Attribute) { break; case MCSA_NoDeadStrip: - Symbol->setExported(); + Symbol->setNoStrip(); break; default: |