diff options
author | Thomas Lively <tlively@google.com> | 2023-11-21 08:50:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 23:50:53 -0800 |
commit | cccc7a6a66b00ab79626afe02f259aa5290d479c (patch) | |
tree | 1f03896877a1d59ee9c7ae6c25194382f767e4c6 /src/wasm-ir-builder.h | |
parent | beb816be810caa0b32ab37986e7cae6f6cf11b1b (diff) | |
download | binaryen-cccc7a6a66b00ab79626afe02f259aa5290d479c.tar.gz binaryen-cccc7a6a66b00ab79626afe02f259aa5290d479c.tar.bz2 binaryen-cccc7a6a66b00ab79626afe02f259aa5290d479c.zip |
[Parser] Parse tags and throw (#6126)
Also fix the parser to correctly error if an imported item appears after a
non-imported item and make the corresponding fix to the test.
Diffstat (limited to 'src/wasm-ir-builder.h')
-rw-r--r-- | src/wasm-ir-builder.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm-ir-builder.h b/src/wasm-ir-builder.h index 9b8ae043f..e7613b373 100644 --- a/src/wasm-ir-builder.h +++ b/src/wasm-ir-builder.h @@ -146,7 +146,7 @@ public: // [[nodiscard]] Result<> makeTableFill(); // [[nodiscard]] Result<> makeTableCopy(); // [[nodiscard]] Result<> makeTry(); - // [[nodiscard]] Result<> makeThrow(); + [[nodiscard]] Result<> makeThrow(Name tag); // [[nodiscard]] Result<> makeRethrow(); // [[nodiscard]] Result<> makeTupleMake(); // [[nodiscard]] Result<> makeTupleExtract(); @@ -203,6 +203,7 @@ public: [[nodiscard]] Result<> visitCall(Call*); [[nodiscard]] Result<> visitCallIndirect(CallIndirect*); [[nodiscard]] Result<> visitCallRef(CallRef*); + [[nodiscard]] Result<> visitThrow(Throw*); private: Module& wasm; |