diff options
author | Abbas Mashayekh <martianboy2005@gmail.com> | 2021-04-02 21:34:03 +0430 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 10:04:03 -0700 |
commit | c59df4cda843ef11ad261f5c889dddc9a9d59d3b (patch) | |
tree | 123b923408082a8578bc9bad6cafe2b5aaeeedda /test/example/module-splitting.txt | |
parent | c75be5fc138f4f523a548758fa785cac310563fd (diff) | |
download | binaryen-c59df4cda843ef11ad261f5c889dddc9a9d59d3b.tar.gz binaryen-c59df4cda843ef11ad261f5c889dddc9a9d59d3b.tar.bz2 binaryen-c59df4cda843ef11ad261f5c889dddc9a9d59d3b.zip |
Reorder global definitions in Print pass (#3770)
This is needed to make sure globals are printed before element segments,
where `global.get` can appear both as offset and an expression.
Diffstat (limited to 'test/example/module-splitting.txt')
-rw-r--r-- | test/example/module-splitting.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/example/module-splitting.txt b/test/example/module-splitting.txt index 93a766652..f9e0b313f 100644 --- a/test/example/module-splitting.txt +++ b/test/example/module-splitting.txt @@ -13,18 +13,18 @@ Secondary: Before: (module (type $i32_=>_none (func (param i32))) + (global $glob (mut i32) (i32.const 7)) (memory $mem (shared 3 42)) (table $tab 3 42 funcref) - (global $glob (mut i32) (i32.const 7)) (event $e (attr 0) (param i32)) ) Keeping: <none> After: (module (type $i32_=>_none (func (param i32))) + (global $glob (mut i32) (i32.const 7)) (memory $mem (shared 3 42)) (table $tab 3 42 funcref) - (global $glob (mut i32) (i32.const 7)) (event $e (attr 0) (param i32)) (export "%memory" (memory $mem)) (export "%table" (table $tab)) @@ -75,9 +75,9 @@ Secondary: Before: (module (type $i32_=>_none (func (param i32))) + (global $glob (mut i32) (i32.const 7)) (memory $mem (shared 3 42)) (table $tab 3 42 funcref) - (global $glob (mut i32) (i32.const 7)) (event $e (attr 0) (param i32)) (export "mem" (memory $mem)) (export "tab" (table $tab)) @@ -88,9 +88,9 @@ Keeping: <none> After: (module (type $i32_=>_none (func (param i32))) + (global $glob (mut i32) (i32.const 7)) (memory $mem (shared 3 42)) (table $tab 3 42 funcref) - (global $glob (mut i32) (i32.const 7)) (event $e (attr 0) (param i32)) (export "mem" (memory $mem)) (export "tab" (table $tab)) |