summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/BinaryFormat/Wasm.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-09-20 21:17:04 +0000
committerSam Clegg <sbc@chromium.org>2017-09-20 21:17:04 +0000
commit31a2c8093593a8e17a05022915eb505dcb7020e3 (patch)
tree7f21c266b4295bdb7d2000d6ef60d87fb733ad78 /llvm/include/llvm/BinaryFormat/Wasm.h
parent1e72f65077f9f87cccaa490131803431958d90e2 (diff)
downloadbcm5719-llvm-31a2c8093593a8e17a05022915eb505dcb7020e3.tar.gz
bcm5719-llvm-31a2c8093593a8e17a05022915eb505dcb7020e3.zip
[WebAssembly] Add support for local symbol bindings
Differential Revision: https://reviews.llvm.org/D38096 llvm-svn: 313817
Diffstat (limited to 'llvm/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r--llvm/include/llvm/BinaryFormat/Wasm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h
index 53a812b2777..ffb453513cc 100644
--- a/llvm/include/llvm/BinaryFormat/Wasm.h
+++ b/llvm/include/llvm/BinaryFormat/Wasm.h
@@ -188,8 +188,12 @@ enum : unsigned {
WASM_SEGMENT_NAMES = 0x5,
};
+const unsigned WASM_SYMBOL_BINDING_MASK = 0x3;
+
enum : unsigned {
- WASM_SYMBOL_FLAG_WEAK = 0x1,
+ WASM_SYMBOL_BINDING_GLOBAL = 0x0,
+ WASM_SYMBOL_BINDING_WEAK = 0x1,
+ WASM_SYMBOL_BINDING_LOCAL = 0x2,
};
#define WASM_RELOC(name, value) name = value,
OpenPOWER on IntegriCloud