From 9c75b8f8ef58347f2fab44463f9a65eb37212742 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Thu, 9 Apr 2020 11:41:40 -0700 Subject: 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. --- test/print/min.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/print') diff --git a/test/print/min.txt b/test/print/min.txt index 191b331ad..2a103fcea 100644 --- a/test/print/min.txt +++ b/test/print/min.txt @@ -5,14 +5,14 @@ (type $f32_=>_f32 (func (param f32) (result f32))) (memory $0 256 256) (export "floats" (func $floats)) - (func $floats (; 0 ;) (param $f f32) (result f32) + (func $floats (param $f f32) (result f32) (local $t f32) (f32.add (local.get $t) (local.get $f) ) ) - (func $neg (; 1 ;) (param $k i32) (param $p i32) (result f32) + (func $neg (param $k i32) (param $p i32) (result f32) (local $n f32) (local.tee $n (f32.neg @@ -28,7 +28,7 @@ ) ) ) - (func $littleswitch (; 2 ;) (param $x i32) (result i32) + (func $littleswitch (param $x i32) (result i32) (block $topmost (result i32) (block $switch-case$2 (block $switch-case$1 @@ -49,7 +49,7 @@ (i32.const 0) ) ) - (func $f1 (; 3 ;) (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32) + (func $f1 (param $i1 i32) (param $i2 i32) (param $i3 i32) (result i32) (block $topmost (result i32) (local.get $i3) ) -- cgit v1.2.3