diff options
author | Sam Clegg <sbc@chromium.org> | 2018-04-26 19:27:28 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-04-26 19:27:28 +0000 |
commit | 6a31a0d694a65f5cb11ae6d49c7fdb3f08b0d262 (patch) | |
tree | 80ffd86a99679f42be9cb191dcd65305be55e03a /llvm/include/llvm/BinaryFormat/Wasm.h | |
parent | 540512c29719dc98429961c38fa882bcfef1de40 (diff) | |
download | bcm5719-llvm-6a31a0d694a65f5cb11ae6d49c7fdb3f08b0d262.tar.gz bcm5719-llvm-6a31a0d694a65f5cb11ae6d49c7fdb3f08b0d262.zip |
[WebAssembly] Write DWARF data into wasm object file
- Writes ".debug_XXX" into corresponding custom sections.
- Writes relocation records into "reloc.debug_XXX" sections.
Patch by Yury Delendik!
Differential Revision: https://reviews.llvm.org/D44184
llvm-svn: 330982
Diffstat (limited to 'llvm/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r-- | llvm/include/llvm/BinaryFormat/Wasm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h index 47657ca6675..586890a7f3a 100644 --- a/llvm/include/llvm/BinaryFormat/Wasm.h +++ b/llvm/include/llvm/BinaryFormat/Wasm.h @@ -250,8 +250,9 @@ enum : unsigned { // Kind codes used in the custom "linking" section in the WASM_SYMBOL_TABLE enum WasmSymbolType : unsigned { WASM_SYMBOL_TYPE_FUNCTION = 0x0, - WASM_SYMBOL_TYPE_DATA = 0x1, - WASM_SYMBOL_TYPE_GLOBAL = 0x2, + WASM_SYMBOL_TYPE_DATA = 0x1, + WASM_SYMBOL_TYPE_GLOBAL = 0x2, + WASM_SYMBOL_TYPE_SECTION = 0x3, }; const unsigned WASM_SYMBOL_BINDING_MASK = 0x3; |