diff options
author | Daniel Wirtz <dcode@dcode.io> | 2020-09-30 00:15:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 00:15:33 +0200 |
commit | 67a96ae60085366b59d64bc997c9e6525c247e27 (patch) | |
tree | 76338e649b18b572c5ad184641c029b16344f0f2 /test/passes/remove-unused-nonfunction-module-elements_all-features.txt | |
parent | 7d673ce83206349159a68fe683bc7da02dcdaf98 (diff) | |
download | binaryen-67a96ae60085366b59d64bc997c9e6525c247e27.tar.gz binaryen-67a96ae60085366b59d64bc997c9e6525c247e27.tar.bz2 binaryen-67a96ae60085366b59d64bc997c9e6525c247e27.zip |
Fix applying default / unify SExpr and Wasm builder names (#3179)
SExpressionWasmBuilder was not applying default memory and table import names on the memory and table, unlike on functions, globals and events, where it applies them. Also aligns default import names to use the same shorter forms as in binary parsing.
Diffstat (limited to 'test/passes/remove-unused-nonfunction-module-elements_all-features.txt')
-rw-r--r-- | test/passes/remove-unused-nonfunction-module-elements_all-features.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/passes/remove-unused-nonfunction-module-elements_all-features.txt b/test/passes/remove-unused-nonfunction-module-elements_all-features.txt index 22ad3d015..2091e9560 100644 --- a/test/passes/remove-unused-nonfunction-module-elements_all-features.txt +++ b/test/passes/remove-unused-nonfunction-module-elements_all-features.txt @@ -100,7 +100,7 @@ ) (module (import "env" "memory" (memory $0 256)) - (import "env" "table" (table $0 1 funcref)) + (import "env" "table" (table $timport$0 1 funcref)) (export "mem" (memory $0)) (export "tab" (table $0)) ) @@ -108,7 +108,7 @@ (type $none_=>_none (func)) (import "env" "memory" (memory $0 256)) (data (i32.const 1) "hello, world!") - (import "env" "table" (table $0 1 funcref)) + (import "env" "table" (table $timport$0 1 funcref)) (elem (i32.const 0) $waka) (func $waka (nop) @@ -117,7 +117,7 @@ (module (type $none_=>_none (func)) (import "env" "memory" (memory $0 256)) - (import "env" "table" (table $0 0 funcref)) + (import "env" "table" (table $timport$0 0 funcref)) (export "user" (func $user)) (func $user (drop @@ -223,7 +223,7 @@ (type $none_=>_none (func)) (import "env" "memory" (memory $0 256)) (data (global.get $memoryBase) "hello, world!") - (import "env" "table" (table $0 0 funcref)) + (import "env" "table" (table $timport$0 0 funcref)) (elem (global.get $tableBase) $waka) (import "env" "memoryBase" (global $memoryBase i32)) (import "env" "tableBase" (global $tableBase i32)) @@ -316,7 +316,7 @@ ) (module (type $f64_=>_f64 (func (param f64) (result f64))) - (import "env" "table" (table $0 6 6 funcref)) + (import "env" "table" (table $timport$0 6 6 funcref)) (elem (i32.const 0) $0) (func $0 (param $var$0 f64) (result f64) (if (result f64) |