diff options
Diffstat (limited to 'src/parser/contexts.h')
-rw-r--r-- | src/parser/contexts.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parser/contexts.h b/src/parser/contexts.h index e79330871..8b59ab40b 100644 --- a/src/parser/contexts.h +++ b/src/parser/contexts.h @@ -824,6 +824,9 @@ struct NullInstrParserCtx { const TagLabelListT&) { return Ok{}; } + Result<> makeSuspend(Index, const std::vector<Annotation>&, TagIdxT) { + return Ok{}; + } }; struct NullCtx : NullTypeParserCtx, NullInstrParserCtx { @@ -2594,6 +2597,11 @@ struct ParseDefsCtx : TypeParserCtx<ParseDefsCtx> { } return withLoc(pos, irBuilder.makeResume(type, tags, labels)); } + + Result<> + makeSuspend(Index pos, const std::vector<Annotation>& annotations, Name tag) { + return withLoc(pos, irBuilder.makeSuspend(tag)); + } }; } // namespace wasm::WATParser |