summaryrefslogtreecommitdiff
path: root/test/lit/passes/remove-unused-module-elements-eh.wast
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-06-18 14:20:03 -0700
committerGitHub <noreply@github.com>2021-06-18 14:20:03 -0700
commit28e88b9f993a2e45662fde0b10920aa22e7b1b7f (patch)
tree77bbd5f1dd1bfcb089b12f6fa9fcf828c135c099 /test/lit/passes/remove-unused-module-elements-eh.wast
parent97e277c51218778d1d76fd59fed3b4ca7756382e (diff)
downloadbinaryen-28e88b9f993a2e45662fde0b10920aa22e7b1b7f.tar.gz
binaryen-28e88b9f993a2e45662fde0b10920aa22e7b1b7f.tar.bz2
binaryen-28e88b9f993a2e45662fde0b10920aa22e7b1b7f.zip
[EH] Replace event with tag (#3937)
We recently decided to change 'event' to 'tag', and to 'event section' to 'tag section', out of the rationale that the section contains a generalized tag that references a type, which may be used for something other than exceptions, and the name 'event' can be confusing in the web context. See - https://github.com/WebAssembly/exception-handling/issues/159#issuecomment-857910130 - https://github.com/WebAssembly/exception-handling/pull/161
Diffstat (limited to 'test/lit/passes/remove-unused-module-elements-eh.wast')
-rw-r--r--test/lit/passes/remove-unused-module-elements-eh.wast22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/lit/passes/remove-unused-module-elements-eh.wast b/test/lit/passes/remove-unused-module-elements-eh.wast
index 7e0c66af4..2a6a3b6b9 100644
--- a/test/lit/passes/remove-unused-module-elements-eh.wast
+++ b/test/lit/passes/remove-unused-module-elements-eh.wast
@@ -1,20 +1,20 @@
;; RUN: wasm-opt %s --remove-unused-module-elements -all -S -o - | filecheck %s
-;; Non-exported and unused events can be removed
+;; Non-exported and unused tags can be removed
(module
(type $0 (func (param i32)))
- ;; CHECK-NOT: (event $e-remove
- ;; CHECK: (event $e-export
- ;; CHECK: (event $e-throw
- ;; CHECK: (event $e-catch
- (event $e-remove (attr 0) (type $0)) ;; can be removed
- (event $e-export (attr 0) (param i64)) ;; cannot be removed (exported)
- (event $e-throw (attr 0) (type $0)) ;; cannot be removed (used in throw)
- (event $e-catch (attr 0) (type $0)) ;; cannot be removed (used in catch)
+ ;; CHECK-NOT: (tag $e-remove
+ ;; CHECK: (tag $e-export
+ ;; CHECK: (tag $e-throw
+ ;; CHECK: (tag $e-catch
+ (tag $e-remove (attr 0) (type $0)) ;; can be removed
+ (tag $e-export (attr 0) (param i64)) ;; cannot be removed (exported)
+ (tag $e-throw (attr 0) (type $0)) ;; cannot be removed (used in throw)
+ (tag $e-catch (attr 0) (type $0)) ;; cannot be removed (used in catch)
- (export "e-export" (event $e-export))
- (import "env" "e" (event $e-import (attr 0) (param i32)))
+ (export "e-export" (tag $e-export))
+ (import "env" "e" (tag $e-import (attr 0) (param i32)))
(start $start)
(func $start