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/exception-handling.wast.fromBinary | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/exception-handling.wast.fromBinary') diff --git a/test/exception-handling.wast.fromBinary b/test/exception-handling.wast.fromBinary index b5aba7e15..195244930 100644 --- a/test/exception-handling.wast.fromBinary +++ b/test/exception-handling.wast.fromBinary @@ -5,16 +5,16 @@ (type $exnref_=>_exnref (func (param exnref) (result exnref))) (event $event$0 (attr 0) (param i32)) (event $event$1 (attr 0) (param anyref)) - (func $exnref_test (; 0 ;) (param $0 exnref) (result exnref) + (func $exnref_test (param $0 exnref) (result exnref) (local.get $0) ) - (func $foo (; 1 ;) + (func $foo (nop) ) - (func $bar (; 2 ;) + (func $bar (nop) ) - (func $eh_test (; 3 ;) + (func $eh_test (local $0 exnref) (try (throw $event$0 @@ -68,7 +68,7 @@ ) ) ) - (func $subtype_test (; 4 ;) + (func $subtype_test (try (nop) (catch -- cgit v1.2.3