diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-04-09 11:41:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 11:41:40 -0700 |
commit | 9c75b8f8ef58347f2fab44463f9a65eb37212742 (patch) | |
tree | 8660dbae4ade8d07c7dc62bc76da0da13e35dd73 /test/reference-types.wast.fromBinary.noDebugInfo | |
parent | b3d79f406ab80d5f36995e03385df3903e52f46e (diff) | |
download | binaryen-9c75b8f8ef58347f2fab44463f9a65eb37212742.tar.gz binaryen-9c75b8f8ef58347f2fab44463f9a65eb37212742.tar.bz2 binaryen-9c75b8f8ef58347f2fab44463f9a65eb37212742.zip |
Remove function index printing (#2742)
`BinaryIndexes` was only used in two places (Print.cpp and
wasm-binary.h), so it didn't seem to be a great fit for
module-utils.h. This change moves it to wasm-binary.h and removes its
usage in Print.cpp. This means that function indexes are no longer
printed, but those were of limited utility and were the source of
annoying noise when updating tests, anyway.
Diffstat (limited to 'test/reference-types.wast.fromBinary.noDebugInfo')
-rw-r--r-- | test/reference-types.wast.fromBinary.noDebugInfo | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/test/reference-types.wast.fromBinary.noDebugInfo b/test/reference-types.wast.fromBinary.noDebugInfo index aee92afc2..5fce199ad 100644 --- a/test/reference-types.wast.fromBinary.noDebugInfo +++ b/test/reference-types.wast.fromBinary.noDebugInfo @@ -21,22 +21,22 @@ (global $global$5 (mut funcref) (ref.func $4)) (export "export_func" (func $fimport$0)) (export "export_global" (global $gimport$1)) - (func $0 (; 1 ;) (param $0 anyref) + (func $0 (param $0 anyref) (nop) ) - (func $1 (; 2 ;) (param $0 funcref) + (func $1 (param $0 funcref) (nop) ) - (func $2 (; 3 ;) (param $0 exnref) + (func $2 (param $0 exnref) (nop) ) - (func $3 (; 4 ;) (param $0 nullref) + (func $3 (param $0 nullref) (nop) ) - (func $4 (; 5 ;) + (func $4 (nop) ) - (func $5 (; 6 ;) + (func $5 (local $0 funcref) (local $1 anyref) (local $2 nullref) @@ -433,56 +433,56 @@ ) ) ) - (func $6 (; 7 ;) (result anyref) + (func $6 (result anyref) (local $0 anyref) (local.get $0) ) - (func $7 (; 8 ;) (result anyref) + (func $7 (result anyref) (ref.func $4) ) - (func $8 (; 9 ;) (result anyref) + (func $8 (result anyref) (local $0 exnref) (local.get $0) ) - (func $9 (; 10 ;) (result anyref) + (func $9 (result anyref) (ref.null) ) - (func $10 (; 11 ;) (result funcref) + (func $10 (result funcref) (ref.func $4) ) - (func $11 (; 12 ;) (result funcref) + (func $11 (result funcref) (ref.null) ) - (func $12 (; 13 ;) (result exnref) + (func $12 (result exnref) (local $0 exnref) (local.get $0) ) - (func $13 (; 14 ;) (result exnref) + (func $13 (result exnref) (ref.null) ) - (func $14 (; 15 ;) (result nullref) + (func $14 (result nullref) (local $0 nullref) (local.get $0) ) - (func $15 (; 16 ;) (result anyref) + (func $15 (result anyref) (local $0 anyref) (local $1 exnref) (return (local.get $0) ) ) - (func $16 (; 17 ;) (result funcref) + (func $16 (result funcref) (return (ref.func $4) ) ) - (func $17 (; 18 ;) (result exnref) + (func $17 (result exnref) (local $0 exnref) (return (local.get $0) ) ) - (func $18 (; 19 ;) (result nullref) + (func $18 (result nullref) (local $0 nullref) (return (local.get $0) |