From c59df4cda843ef11ad261f5c889dddc9a9d59d3b Mon Sep 17 00:00:00 2001 From: Abbas Mashayekh Date: Fri, 2 Apr 2021 21:34:03 +0430 Subject: 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. --- test/lld/hello_world.passive.wat.out | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/lld/hello_world.passive.wat.out') diff --git a/test/lld/hello_world.passive.wat.out b/test/lld/hello_world.passive.wat.out index 5d4a2ed10..a4c1a9c1b 100644 --- a/test/lld/hello_world.passive.wat.out +++ b/test/lld/hello_world.passive.wat.out @@ -4,12 +4,12 @@ (type $0 (func (param i32) (result i32))) (type $3 (func (param i32 i32) (result i32))) (import "env" "puts" (func $puts (param i32) (result i32))) - (memory $0 2) - (data "Hello, world\00") - (table $0 1 1 funcref) (global $global$0 (mut i32) (i32.const 66128)) (global $global$1 i32 (i32.const 66128)) (global $global$2 i32 (i32.const 581)) + (memory $0 2) + (data "Hello, world\00") + (table $0 1 1 funcref) (export "memory" (memory $0)) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) (export "__heap_base" (global $global$1)) -- cgit v1.2.3