summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/BinaryFormat/Wasm.h
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/include/llvm/BinaryFormat/Wasm.h
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/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r--llvm/include/llvm/BinaryFormat/Wasm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h
index 0f22bfe610c..07548609f1a 100644
--- a/llvm/include/llvm/BinaryFormat/Wasm.h
+++ b/llvm/include/llvm/BinaryFormat/Wasm.h
@@ -318,6 +318,7 @@ const unsigned WASM_SYMBOL_VISIBILITY_HIDDEN = 0x4;
const unsigned WASM_SYMBOL_UNDEFINED = 0x10;
const unsigned WASM_SYMBOL_EXPORTED = 0x20;
const unsigned WASM_SYMBOL_EXPLICIT_NAME = 0x40;
+const unsigned WASM_SYMBOL_NO_STRIP = 0x80;
#define WASM_RELOC(name, value) name = value,
OpenPOWER on IntegriCloud