diff options
author | Derek Schuff <dschuff@chromium.org> | 2016-10-07 10:57:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-07 10:57:50 -0700 |
commit | cbeb4c9f9ba7c8f50fcb938ef668842bbd5dacb4 (patch) | |
tree | 71af10f36b62851530c686d47a361e108f3316e3 /test/min.fromasm.imprecise.no-opts | |
parent | caf0a3db20bbc03d2261b2c5a112bc0eddd3ca73 (diff) | |
download | binaryen-cbeb4c9f9ba7c8f50fcb938ef668842bbd5dacb4.tar.gz binaryen-cbeb4c9f9ba7c8f50fcb938ef668842bbd5dacb4.tar.bz2 binaryen-cbeb4c9f9ba7c8f50fcb938ef668842bbd5dacb4.zip |
Change print order of top-level module components (#751)
In wast files, the spec and WABT require imports to appear before any
non-import definitions (see also
https://github.com/WebAssembly/wabt/issues/152). This patch re-orders
visitModule in the wast printer to meet this requirement, and more or
less match the order of the binary sections. Also remove extraneous
whitespace around table definitions.
Diffstat (limited to 'test/min.fromasm.imprecise.no-opts')
-rw-r--r-- | test/min.fromasm.imprecise.no-opts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/min.fromasm.imprecise.no-opts b/test/min.fromasm.imprecise.no-opts index 133f734ad..8244c4c70 100644 --- a/test/min.fromasm.imprecise.no-opts +++ b/test/min.fromasm.imprecise.no-opts @@ -4,10 +4,10 @@ (import "env" "table" (table 0 anyfunc)) (import "env" "memoryBase" (global $memoryBase i32)) (import "env" "tableBase" (global $tableBase i32)) - (export "floats" (func $floats)) - (export "getTempRet0" (func $ub)) (global $tDP (mut i32) (get_global $tDP$asm2wasm$import)) (global $M (mut i32) (i32.const 0)) + (export "floats" (func $floats)) + (export "getTempRet0" (func $ub)) (func $floats (param $f f32) (result f32) (local $t f32) (return |