summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/WebAssembly
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/test/MC/WebAssembly
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/test/MC/WebAssembly')
-rw-r--r--llvm/test/MC/WebAssembly/no-dead-strip.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/MC/WebAssembly/no-dead-strip.ll b/llvm/test/MC/WebAssembly/no-dead-strip.ll
index 1810c49c7c1..f35be2c7f1c 100644
--- a/llvm/test/MC/WebAssembly/no-dead-strip.ll
+++ b/llvm/test/MC/WebAssembly/no-dead-strip.ll
@@ -13,8 +13,8 @@ entry:
; CHECK-NEXT: Symbol {
; CHECK-NEXT: Name: foo
; CHECK-NEXT: Type: FUNCTION (0x0)
-; CHECK-NEXT: Flags [ (0x20)
-; CHECK-NEXT: EXPORTED (0x20)
+; CHECK-NEXT: Flags [ (0x80)
+; CHECK-NEXT: NO_STRIP (0x80)
; CHECK-NEXT: ]
; CHECK-NEXT: ElementIndex: 0x0
; CHECK-NEXT: }
OpenPOWER on IntegriCloud