diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-02-22 11:10:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 11:10:12 -0800 |
commit | a40f14508fb769358737c3f8c9b94e6c42f79c61 (patch) | |
tree | f57dca752269f26168c98a2f224e57037b1faebf /test/merge/dylib.wasm.combined.finalized | |
parent | 30c1b0c58ee60a730ddfd862fbed7dd5e4d7cf93 (diff) | |
download | binaryen-a40f14508fb769358737c3f8c9b94e6c42f79c61.tar.gz binaryen-a40f14508fb769358737c3f8c9b94e6c42f79c61.tar.bz2 binaryen-a40f14508fb769358737c3f8c9b94e6c42f79c61.zip |
ensure unique import names for each type, by giving them a prefix, avoiding collisions between say a global import and a function with a name from the name section that happens to match it (#1424)
Diffstat (limited to 'test/merge/dylib.wasm.combined.finalized')
-rw-r--r-- | test/merge/dylib.wasm.combined.finalized | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/merge/dylib.wasm.combined.finalized b/test/merge/dylib.wasm.combined.finalized index 12952d0a4..10905193c 100644 --- a/test/merge/dylib.wasm.combined.finalized +++ b/test/merge/dylib.wasm.combined.finalized @@ -6,13 +6,13 @@ (type $0$0 (func (param i32 i32))) (type $1$0 (func (result i32))) (type $2$0 (func)) - (import "env" "memoryBase" (global $import$0 i32)) + (import "env" "memoryBase" (global $gimport$0 i32)) (import "env" "memory" (memory $0 256)) (import "env" "table" (table 8 anyfunc)) - (import "env" "tableBase" (global $import$4 i32)) + (import "env" "tableBase" (global $gimport$4 i32)) (import "env" "_puts" (func $import$1 (param i32) (result i32))) - (import "env" "memoryBase" (global $import$0$0 i32)) - (import "env" "tableBase" (global $import$4$0 i32)) + (import "env" "memoryBase" (global $gimport$0$0 i32)) + (import "env" "tableBase" (global $gimport$4$0 i32)) (global $global$0 (mut i32) (i32.const 0)) (global $global$1 (mut i32) (i32.const 0)) (global $global$2 i32 (i32.const 0)) |