summaryrefslogtreecommitdiff
path: root/test/metadce
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-04-09 11:41:40 -0700
committerGitHub <noreply@github.com>2020-04-09 11:41:40 -0700
commit9c75b8f8ef58347f2fab44463f9a65eb37212742 (patch)
tree8660dbae4ade8d07c7dc62bc76da0da13e35dd73 /test/metadce
parentb3d79f406ab80d5f36995e03385df3903e52f46e (diff)
downloadbinaryen-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/metadce')
-rw-r--r--test/metadce/corners.wast.dced2
-rw-r--r--test/metadce/outside.wast.dced4
-rw-r--r--test/metadce/rooted-export.wast.dced2
-rw-r--r--test/metadce/spanning_cycle.wast.dced2
-rw-r--r--test/metadce/threaded.wast.dced8
-rw-r--r--test/metadce/threaded_cycle.wast.dced8
6 files changed, 13 insertions, 13 deletions
diff --git a/test/metadce/corners.wast.dced b/test/metadce/corners.wast.dced
index 11f37f398..2d66127e6 100644
--- a/test/metadce/corners.wast.dced
+++ b/test/metadce/corners.wast.dced
@@ -7,7 +7,7 @@
(import "env" "an-imported-table-func" (func $imported_table_func))
(global $STACKTOP (mut i32) (global.get $STACKTOP$asm2wasm$import))
(export "stackAlloc" (func $stackAlloc))
- (func $stackAlloc (; 2 ;)
+ (func $stackAlloc
(drop
(global.get $STACKTOP)
)
diff --git a/test/metadce/outside.wast.dced b/test/metadce/outside.wast.dced
index 3768e02eb..006e14497 100644
--- a/test/metadce/outside.wast.dced
+++ b/test/metadce/outside.wast.dced
@@ -11,10 +11,10 @@
(global $from_segment (mut i32) (i32.const 0))
(global $from_segment_2 (mut i32) (i32.const 0))
(export "wasm_func" (func $a_wasm_func))
- (func $table_func (; 1 ;)
+ (func $table_func
(nop)
)
- (func $a_wasm_func (; 2 ;)
+ (func $a_wasm_func
(call $a_js_func)
(drop
(global.get $DYNAMICTOP_PTR$asm2wasm$import)
diff --git a/test/metadce/rooted-export.wast.dced b/test/metadce/rooted-export.wast.dced
index 7be29e0d2..866872a5d 100644
--- a/test/metadce/rooted-export.wast.dced
+++ b/test/metadce/rooted-export.wast.dced
@@ -4,7 +4,7 @@
(event $b_wasm_event (attr 0) (param i32))
(export "wasm_func_b" (func $b_wasm_func))
(export "wasm_event_b" (event $b_wasm_event))
- (func $b_wasm_func (; 0 ;)
+ (func $b_wasm_func
(unreachable)
)
)
diff --git a/test/metadce/spanning_cycle.wast.dced b/test/metadce/spanning_cycle.wast.dced
index 807f10dd0..7b74682bd 100644
--- a/test/metadce/spanning_cycle.wast.dced
+++ b/test/metadce/spanning_cycle.wast.dced
@@ -4,7 +4,7 @@
(memory $0 1 1)
(data passive "Hello, datacount section!")
(export "wasm_func_a" (func $a_wasm_func))
- (func $a_wasm_func (; 1 ;)
+ (func $a_wasm_func
(memory.init 0
(i32.const 0)
(i32.const 0)
diff --git a/test/metadce/threaded.wast.dced b/test/metadce/threaded.wast.dced
index 6513743e7..8b04aee92 100644
--- a/test/metadce/threaded.wast.dced
+++ b/test/metadce/threaded.wast.dced
@@ -7,16 +7,16 @@
(export "wasm_func2" (func $wasm_func_2))
(export "wasm_func3" (func $wasm_func_3))
(export "wasm_func4" (func $wasm_func_4))
- (func $wasm_func_4 (; 3 ;)
+ (func $wasm_func_4
(nop)
)
- (func $wasm_func_3 (; 4 ;)
+ (func $wasm_func_3
(call $js_func_4)
)
- (func $wasm_func_2 (; 5 ;)
+ (func $wasm_func_2
(call $js_func_3)
)
- (func $wasm_func_1 (; 6 ;)
+ (func $wasm_func_1
(call $js_func_2)
)
)
diff --git a/test/metadce/threaded_cycle.wast.dced b/test/metadce/threaded_cycle.wast.dced
index 6c568a426..936446ddf 100644
--- a/test/metadce/threaded_cycle.wast.dced
+++ b/test/metadce/threaded_cycle.wast.dced
@@ -8,16 +8,16 @@
(export "wasm_func2" (func $wasm_func_2))
(export "wasm_func3" (func $wasm_func_3))
(export "wasm_func4" (func $wasm_func_4))
- (func $wasm_func_4 (; 4 ;)
+ (func $wasm_func_4
(call $js_func_1)
)
- (func $wasm_func_3 (; 5 ;)
+ (func $wasm_func_3
(call $js_func_4)
)
- (func $wasm_func_2 (; 6 ;)
+ (func $wasm_func_2
(call $js_func_3)
)
- (func $wasm_func_1 (; 7 ;)
+ (func $wasm_func_1
(call $js_func_2)
)
)