summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCWasmStreamer.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2019-08-29 22:40:00 +0000
committerDan Gohman <dan433584@gmail.com>2019-08-29 22:40:00 +0000
commitda84b688f9160bcd00ef46932e752aa33af94bc7 (patch)
tree0b4589181fa40626e1847fbd32a29e1c174dd182 /llvm/lib/MC/MCWasmStreamer.cpp
parent452e5647a5862599a679cf892777ff1ea45a6462 (diff)
downloadbcm5719-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.cpp2
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:
OpenPOWER on IntegriCloud