We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 090b7b2 commit 364c37cCopy full SHA for 364c37c
compiler/lib/wasm/wa_wat_output.ml
@@ -19,8 +19,6 @@
19
open! Stdlib
20
open Wa_ast
21
22
-let target = `Binaryen (*`Reference*)
23
-
24
let assign_names ?(reversed = true) f names =
25
let used = ref StringSet.empty in
26
let counts = Hashtbl.create 101 in
@@ -394,10 +392,7 @@ let expression_or_instructions ctx st in_function =
394
392
]
395
393
| MemoryGrow (_, e) -> [ List (Atom "memory.grow" :: expression e) ]
396
| Seq (l, e) -> instructions l @ expression e
397
- | Pop ty -> (
398
- match target with
399
- | `Binaryen -> [ List [ Atom "pop"; value_type st ty ] ]
400
- | `Reference -> [])
+ | Pop _ -> []
401
| RefFunc symb ->
402
if in_function then reference_function ctx symb;
403
[ List [ Atom "ref.func"; index st.func_names symb ] ]
0 commit comments