From e773dfd026ff939e9f4cb91816863bdc5292ff4e Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Mon, 21 Jun 2021 21:24:11 -0700 Subject: [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. --- src/wasm/wasm-validator.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/wasm/wasm-validator.cpp') 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, -- cgit v1.2.3