summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-02-18 22:02:51 +0000
committerGitHub <noreply@github.com>2021-02-18 14:02:51 -0800
commitec2aa7e870ef4d9926e35c5f4bfc7cdbabe2441a (patch)
tree25858a9869946fb867ba65cd60ceecda15e07d50 /test
parent7089ada7c62618d36f5a0a3339334603c5b61a30 (diff)
downloadbinaryen-ec2aa7e870ef4d9926e35c5f4bfc7cdbabe2441a.tar.gz
binaryen-ec2aa7e870ef4d9926e35c5f4bfc7cdbabe2441a.tar.bz2
binaryen-ec2aa7e870ef4d9926e35c5f4bfc7cdbabe2441a.zip
[Wasm Exceptions] Scan catch events in RemoveUnusedModuleElements (#3582)
Also refactor away some annoying repeated code in that pass. visitTry is the only actual change.
Diffstat (limited to 'test')
-rw-r--r--test/passes/remove-unused-module-elements_all-features.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/passes/remove-unused-module-elements_all-features.txt b/test/passes/remove-unused-module-elements_all-features.txt
index fdd768e8b..96fbb8c99 100644
--- a/test/passes/remove-unused-module-elements_all-features.txt
+++ b/test/passes/remove-unused-module-elements_all-features.txt
@@ -291,11 +291,12 @@
)
)
(module
- (type $none_=>_none (func))
(type $i32_=>_none (func (param i32)))
+ (type $none_=>_none (func))
(type $i64_=>_none (func (param i64)))
(event $e-export (attr 0) (param i64))
(event $e-throw (attr 0) (param i32))
+ (event $e-catch (attr 0) (param i32))
(export "e-export" (event $e-export))
(start $start)
(func $start