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-builder.h | |
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-builder.h')
-rw-r--r-- | src/wasm-builder.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index ca3fed286..a3b0febaa 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -125,11 +125,9 @@ public: return glob; } - static std::unique_ptr<Tag> - makeTag(Name name, uint32_t attribute, Signature sig) { + static std::unique_ptr<Tag> makeTag(Name name, Signature sig) { auto tag = std::make_unique<Tag>(); tag->name = name; - tag->attribute = attribute; tag->sig = sig; return tag; } |