summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2023-06-09 08:57:53 -0700
committerGitHub <noreply@github.com>2023-06-09 08:57:53 -0700
commit4ec79ce9826d96225d33dec77dfc344adab92606 (patch)
tree790b10b25e3add7eb7f2c7a77867b7afb65b5247
parent7dc6147ffad3cd13b711a7192b8fb9d234bc914b (diff)
downloadbinaryen-4ec79ce9826d96225d33dec77dfc344adab92606.tar.gz
binaryen-4ec79ce9826d96225d33dec77dfc344adab92606.tar.bz2
binaryen-4ec79ce9826d96225d33dec77dfc344adab92606.zip
Remove handleBranchForVisitBlock (#5760)
This method doesn't seem to be used anymore. It was added in #1771 and its uses were removed in #2492.
-rw-r--r--src/ir/ReFinalize.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/ir/ReFinalize.cpp b/src/ir/ReFinalize.cpp
index e6ea0ecf1..bcbac85cc 100644
--- a/src/ir/ReFinalize.cpp
+++ b/src/ir/ReFinalize.cpp
@@ -24,21 +24,6 @@ static Type getValueType(Expression* value) {
return value ? value->type : Type::none;
}
-namespace {
-
-// Handles a branch fixup for visitBlock: if the branch goes to the
-// target name, give it a value which is unreachable.
-template<typename T>
-void handleBranchForVisitBlock(T* curr, Name name, Module* module) {
- if (BranchUtils::getUniqueTargets(curr).count(name)) {
- assert(!curr->value);
- Builder builder(*module);
- curr->value = builder.makeUnreachable();
- }
-}
-
-} // anonymous namespace
-
void ReFinalize::visitBlock(Block* curr) {
if (curr->list.size() == 0) {
curr->type = Type::none;