summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/BinaryFormat/Wasm.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-07-12 00:24:54 +0000
committerSam Clegg <sbc@chromium.org>2017-07-12 00:24:54 +0000
commit9c07f94a1f6d33a05f208b713c717cf9a221cb00 (patch)
tree40481a6b372e9b00b47659633ca123796235bb75 /llvm/include/llvm/BinaryFormat/Wasm.h
parent878fdee0cf4e0357773b5198f6de1b48996dd090 (diff)
downloadbcm5719-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.h2
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;
};
OpenPOWER on IntegriCloud