summaryrefslogtreecommitdiff
path: root/src/wat-writer.cc
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-06-29 15:18:09 -0700
committerGitHub <noreply@github.com>2021-06-29 15:18:09 -0700
commit29323f09c63c48aef029ff308c39e1c1dc11d6c4 (patch)
tree9f42f24bbb1725298401ab9d2a44c3960bf1cb98 /src/wat-writer.cc
parentcdc1b459c0ba7a5ae8c2b091fe3065185ce81494 (diff)
downloadwabt-29323f09c63c48aef029ff308c39e1c1dc11d6c4.tar.gz
wabt-29323f09c63c48aef029ff308c39e1c1dc11d6c4.tar.bz2
wabt-29323f09c63c48aef029ff308c39e1c1dc11d6c4.zip
[EH] Remove `unwind` (#1682)
`unwind` was removed. See WebAssembly/exception-handling#156.
Diffstat (limited to 'src/wat-writer.cc')
-rw-r--r--src/wat-writer.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/wat-writer.cc b/src/wat-writer.cc
index e3df443b..74964888 100644
--- a/src/wat-writer.cc
+++ b/src/wat-writer.cc
@@ -558,7 +558,6 @@ class WatWriter::ExprVisitorDelegate : public ExprVisitor::Delegate {
Result OnUnreachableExpr(UnreachableExpr*) override;
Result BeginTryExpr(TryExpr*) override;
Result OnCatchExpr(TryExpr*, Catch*) override;
- Result OnUnwindExpr(TryExpr*) override;
Result OnDelegateExpr(TryExpr*) override;
Result EndTryExpr(TryExpr*) override;
Result OnThrowExpr(ThrowExpr*) override;
@@ -894,14 +893,6 @@ Result WatWriter::ExprVisitorDelegate::OnCatchExpr(
return Result::Ok;
}
-Result WatWriter::ExprVisitorDelegate::OnUnwindExpr(TryExpr* expr) {
- writer_->Dedent();
- writer_->WritePutsNewline(Opcode::Unwind_Opcode.GetName());
- writer_->Indent();
- writer_->SetTopLabelType(LabelType::Unwind);
- return Result::Ok;
-}
-
Result WatWriter::ExprVisitorDelegate::OnDelegateExpr(TryExpr* expr) {
writer_->Dedent();
writer_->EndBlock();
@@ -1174,14 +1165,6 @@ void WatWriter::FlushExprTree(const ExprTree& expr_tree) {
WriteCloseNewline();
}
break;
- case TryKind::Unwind:
- WritePuts("(", NextChar::None);
- WritePutsNewline(Opcode::Unwind_Opcode.GetName());
- Indent();
- WriteFoldedExprList(try_expr->unwind);
- FlushExprTreeStack();
- WriteCloseNewline();
- break;
case TryKind::Delegate:
WritePuts("(", NextChar::None);
WritePutsSpace(Opcode::Delegate_Opcode.GetName());