diff options
author | Sam Clegg <sbc@chromium.org> | 2020-10-14 21:10:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 19:10:26 -0700 |
commit | 9c5df069cc466d904c8faa1888095e84ae74d404 (patch) | |
tree | c8f69e0c526428d2849d45be1154ed45dfa77868 /test/passes/fib2_emptylocspan_dwarf.bin.txt | |
parent | 6216becd5e8d93cd17c758a63f24db4494719e2c (diff) | |
download | binaryen-9c5df069cc466d904c8faa1888095e84ae74d404.tar.gz binaryen-9c5df069cc466d904c8faa1888095e84ae74d404.tar.bz2 binaryen-9c5df069cc466d904c8faa1888095e84ae74d404.zip |
Assign import names consistently between text and binaryn reader (#3238)
The s-parser was assigning numbers names per-type where as
the binaryn reader was using the global import count as the
number to append.
This change switches to use per-element count which I think
it preferable as it increases the stability of the auto-generated
names. e.g. memory is now always named `$mimport0`.
Diffstat (limited to 'test/passes/fib2_emptylocspan_dwarf.bin.txt')
-rw-r--r-- | test/passes/fib2_emptylocspan_dwarf.bin.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/passes/fib2_emptylocspan_dwarf.bin.txt b/test/passes/fib2_emptylocspan_dwarf.bin.txt index 1b7686887..21892145e 100644 --- a/test/passes/fib2_emptylocspan_dwarf.bin.txt +++ b/test/passes/fib2_emptylocspan_dwarf.bin.txt @@ -618,7 +618,7 @@ file_names[ 1]: (type $i32_=>_i32 (func (param i32) (result i32))) (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) (import "env" "memory" (memory $mimport$0 256 256)) - (import "env" "__indirect_function_table" (table $timport$1 1 funcref)) + (import "env" "__indirect_function_table" (table $timport$0 1 funcref)) (global $global$0 (mut i32) (i32.const 5243904)) (global $global$1 i32 (i32.const 1024)) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) |