diff options
author | Sam Clegg <sbc@chromium.org> | 2017-09-20 21:17:04 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-09-20 21:17:04 +0000 |
commit | 31a2c8093593a8e17a05022915eb505dcb7020e3 (patch) | |
tree | 7f21c266b4295bdb7d2000d6ef60d87fb733ad78 /llvm/include/llvm/BinaryFormat/Wasm.h | |
parent | 1e72f65077f9f87cccaa490131803431958d90e2 (diff) | |
download | bcm5719-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.h | 6 |
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, |