diff options
author | Heejin Ahn <aheejin@gmail.com> | 2021-06-21 21:24:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 21:24:11 -0700 |
commit | e773dfd026ff939e9f4cb91816863bdc5292ff4e (patch) | |
tree | 879d2311861c8aa41e6d5e688a66c394042fe443 /src/wasm/wasm-validator.cpp | |
parent | 9fc276298b36080658236f0bc93d94cdf774492c (diff) | |
download | binaryen-e773dfd026ff939e9f4cb91816863bdc5292ff4e.tar.gz binaryen-e773dfd026ff939e9f4cb91816863bdc5292ff4e.tar.bz2 binaryen-e773dfd026ff939e9f4cb91816863bdc5292ff4e.zip |
[EH] Make tag's attribute encoding detail (#3947)
This removes `attribute` field from `Tag` class, making the reserved and
unused field known only to binary encoder and decoder. This also removes
the `attribute` parameter from `makeTag` and `addTag` methods in
wasm-builder.h, C API, and Binaryen JS API.
Suggested in
https://github.com/WebAssembly/binaryen/pull/3946#pullrequestreview-687756523.
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
-rw-r--r-- | src/wasm/wasm-validator.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index a42ff36ec..bed04b92b 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -2984,10 +2984,6 @@ static void validateTags(Module& module, ValidationInfo& info) { "Module has tags (exception-handling is disabled)"); } for (auto& curr : module.tags) { - info.shouldBeEqual(curr->attribute, - (unsigned)0, - curr->attribute, - "Currently only attribute 0 is supported"); info.shouldBeEqual(curr->sig.results, Type(Type::none), curr->name, |