diff options
author | Sam Clegg <sbc@chromium.org> | 2017-07-12 00:24:54 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-07-12 00:24:54 +0000 |
commit | 9c07f94a1f6d33a05f208b713c717cf9a221cb00 (patch) | |
tree | 40481a6b372e9b00b47659633ca123796235bb75 /llvm/include/llvm/BinaryFormat/Wasm.h | |
parent | 878fdee0cf4e0357773b5198f6de1b48996dd090 (diff) | |
download | bcm5719-llvm-9c07f94a1f6d33a05f208b713c717cf9a221cb00.tar.gz bcm5719-llvm-9c07f94a1f6d33a05f208b713c717cf9a221cb00.zip |
[WebAssembly] Expose the offset of each data segment
Summary:
This allows tools like lld that process relocations
to apply data relocation correctly. This information
is required because relocation are stored as section
offset.
Subscribers: jfb, dschuff, jgravelle-google, aheejin
Differential Revision: https://reviews.llvm.org/D35234
llvm-svn: 307741
Diffstat (limited to 'llvm/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r-- | llvm/include/llvm/BinaryFormat/Wasm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h index 4cb373a0b70..23e30b7a868 100644 --- a/llvm/include/llvm/BinaryFormat/Wasm.h +++ b/llvm/include/llvm/BinaryFormat/Wasm.h @@ -94,7 +94,7 @@ struct WasmFunction { }; struct WasmDataSegment { - uint32_t Index; + uint32_t MemoryIndex; WasmInitExpr Offset; ArrayRef<uint8_t> Content; }; |