summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-s-parser.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-02-13 20:31:03 +0900
committerGitHub <noreply@github.com>2021-02-13 20:31:03 +0900
commitac3188facecb78ebaea1eec6cd6e4723a1a161fe (patch)
tree157c41d47848defb3ecb2aa407013192f6d8e8ee /src/wasm/wasm-s-parser.cpp
parentdf9389509c703ec0583d16a70306dbdd07426c56 (diff)
downloadbinaryen-ac3188facecb78ebaea1eec6cd6e4723a1a161fe.tar.gz
binaryen-ac3188facecb78ebaea1eec6cd6e4723a1a161fe.tar.bz2
binaryen-ac3188facecb78ebaea1eec6cd6e4723a1a161fe.zip
[EH] Rename delegateTarget to exceptionTarget (NFC) (#3562)
So far `Try`'s label is only targetted by `delegate`s, but it turns out `rethrow` also has to follow the same rule as `delegate` so it needs to target a `Try` label. So this renames variables like `delegateTargetNames` to `exceptionTargetNames` and methods like `replaceDelegateTargets` to `replaceExceptionTargets`. I considered `tryTarget`, but the branch/block counterpart name we use is not `blockTarget` but `branchTarget`, so I chose `exceptionTarget`. The patch that fixes `rethrow`'s target will follow; this is the preparation for that.
Diffstat (limited to 'src/wasm/wasm-s-parser.cpp')
-rw-r--r--src/wasm/wasm-s-parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp
index d2b24fbed..0ff4bfb9f 100644
--- a/src/wasm/wasm-s-parser.cpp
+++ b/src/wasm/wasm-s-parser.cpp
@@ -2048,7 +2048,7 @@ Expression* SExpressionWasmBuilder::makeTry(Element& s) {
if (inner.size() != 2) {
throw ParseException("invalid delegate", inner.line, inner.col);
}
- ret->delegateTarget = getLabel(*inner[1], LabelType::Delegate);
+ ret->delegateTarget = getLabel(*inner[1], LabelType::Exception);
}
if (i != s.size()) {