Skip to content

Commit

Permalink
feat: Add strip_eh pass
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Oct 30, 2023
1 parent 4dc98c5 commit 13883e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/passes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ let strip_dwarf = "strip-dwarf"
(** strip the wasm producers section *)
let strip_producers = "strip-producers"

(** strip EH instructions *)
let strip_eh = "strip-eh"

(** strip the wasm target features section *)
let strip_target_features = "strip-target-features"

Expand Down
3 changes: 3 additions & 0 deletions src/passes.mli
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ val strip_dwarf : t
val strip_producers : t
(** strip the wasm producers section *)

val strip_eh : t
(** strip EH instructions *)

val strip_target_features : t
(** strip the wasm target features section *)

Expand Down
1 change: 1 addition & 0 deletions test/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ let _ =
Passes.monomorphize;
Passes.signext_lowering;
Passes.discard_global_effects;
Passes.strip_eh;
]

let _ =
Expand Down

0 comments on commit 13883e3

Please sign in to comment.