summaryrefslogtreecommitdiff
path: root/src/ir/branch-utils.h
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/ir/branch-utils.h
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/ir/branch-utils.h')
-rw-r--r--src/ir/branch-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/branch-utils.h b/src/ir/branch-utils.h
index 8a4f02a58..826483b09 100644
--- a/src/ir/branch-utils.h
+++ b/src/ir/branch-utils.h
@@ -136,7 +136,7 @@ inline bool replacePossibleTarget(Expression* branch, Name from, Name to) {
}
// Replace all delegate targets within the given AST.
-inline void replaceDelegateTargets(Expression* ast, Name from, Name to) {
+inline void replaceExceptionTargets(Expression* ast, Name from, Name to) {
struct Replacer
: public PostWalker<Replacer, UnifiedExpressionVisitor<Replacer>> {
Name from, to;