From 9790ca3ce809cb6bf26445babcbb49434c8ac71b Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Wed, 4 Sep 2024 16:12:58 -0700 Subject: [EH] Rename Catch(All)_P3 to Catch(All)_Legacy (NFC) (#6901) This renames `Catch(All)_P3` enum to denote the old Phase 3 `catch(_all)` instructions to `Catch(All)_Legacy`, which sounds clearer. This is also to be consistent with https://github.com/llvm/llvm-project/pull/107187. --- src/wasm/wasm-stack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm/wasm-stack.cpp') diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp index ac79d0135..a1446c2de 100644 --- a/src/wasm/wasm-stack.cpp +++ b/src/wasm/wasm-stack.cpp @@ -2142,7 +2142,7 @@ void BinaryInstWriter::emitCatch(Try* curr, Index i) { if (func && !sourceMap) { parent.writeExtraDebugLocation(curr, func, i); } - o << int8_t(BinaryConsts::Catch_P3) + o << int8_t(BinaryConsts::Catch_Legacy) << U32LEB(parent.getTagIndex(curr->catchTags[i])); } @@ -2150,7 +2150,7 @@ void BinaryInstWriter::emitCatchAll(Try* curr) { if (func && !sourceMap) { parent.writeExtraDebugLocation(curr, func, curr->catchBodies.size()); } - o << int8_t(BinaryConsts::CatchAll_P3); + o << int8_t(BinaryConsts::CatchAll_Legacy); } void BinaryInstWriter::emitDelegate(Try* curr) { -- cgit v1.2.3