diff options
author | Sam Clegg <sbc@chromium.org> | 2017-08-31 21:43:45 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-08-31 21:43:45 +0000 |
commit | 200cf2c672317e744915fc0c93356f8b70310db4 (patch) | |
tree | d384da664c66b46f80e0182c7f3f3a0aa95a42ae /llvm/include/llvm/Object/Wasm.h | |
parent | 402d69e32775feac1ece6f25d61745c84afcb50a (diff) |
[WebAssembly] Validate exports when parsing object files
Subscribers: jfb, dschuff, jgravelle-google, aheejin
Differential Revision: https://reviews.llvm.org/D37358
Diffstat (limited to 'llvm/include/llvm/Object/Wasm.h')
-rw-r--r-- | llvm/include/llvm/Object/Wasm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Object/Wasm.h b/llvm/include/llvm/Object/Wasm.h index 07ee4a4d6c4..410e63c2a29 100644 --- a/llvm/include/llvm/Object/Wasm.h +++ b/llvm/include/llvm/Object/Wasm.h @@ -221,6 +221,8 @@ private: uint32_t StartFunction = -1; bool HasLinkingSection = false; wasm::WasmLinkingData LinkingData; + uint32_t NumImportedGlobals = 0; + uint32_t NumImportedFunctions = 0; StringMap<uint32_t> SymbolMap; }; |