summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/BinaryFormat/Wasm.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-12-17 17:50:07 +0000
committerSam Clegg <sbc@chromium.org>2017-12-17 17:50:07 +0000
commitc551522d250ae53d7cac031f91f9c605c02893e7 (patch)
treee3e754275d2f93367c244d3c3ee4baea32203209 /llvm/include/llvm/BinaryFormat/Wasm.h
parent6f7bbf349f05eb569cf17ed9e8cf6a94acbd6120 (diff)
downloadbcm5719-llvm-c551522d250ae53d7cac031f91f9c605c02893e7.tar.gz
bcm5719-llvm-c551522d250ae53d7cac031f91f9c605c02893e7.zip
[WebAssembly] Export some more info on wasm funtions
Summary: These fields are useful for lld's gc-sections support Also remove an unused field. Subscribers: jfb, dschuff, jgravelle-google, aheejin, sunfish Differential Revision: https://reviews.llvm.org/D41320 llvm-svn: 320946
Diffstat (limited to 'llvm/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r--llvm/include/llvm/BinaryFormat/Wasm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h
index a21f28c4196..48847002c82 100644
--- a/llvm/include/llvm/BinaryFormat/Wasm.h
+++ b/llvm/include/llvm/BinaryFormat/Wasm.h
@@ -91,6 +91,8 @@ struct WasmLocalDecl {
struct WasmFunction {
std::vector<WasmLocalDecl> Locals;
ArrayRef<uint8_t> Body;
+ size_t CodeSectionOffset;
+ size_t Size;
};
struct WasmDataSegment {
OpenPOWER on IntegriCloud