Do not emit debug info by default

This basically flips the --noDebug flag to become a --debug flag, so some optimizations, like inlining, aren't skipped by default, which might be unexpected.
This commit is contained in:
dcodeIO
2018-11-09 12:28:10 +01:00
parent d93ca84aed
commit 4f95dce6e2
72 changed files with 6244 additions and 6197 deletions

View File

@ -1,9 +1,8 @@
(module
(type $v (func))
(type $FUNCSIG$i (func (result i32)))
(memory $0 0)
(table $0 1 anyfunc)
(elem (i32.const 0) $null)
(elem (i32.const 0) $start)
(global $export/a i32 (i32.const 1))
(global $export/b i32 (i32.const 2))
(export "memory" (memory $0))
@ -12,20 +11,7 @@
(export "renamed_a" (global $export/a))
(export "renamed_b" (global $export/b))
(export "renamed_renamed_b" (global $export/b))
(start $start)
(func $export/add (; 0 ;) (type $FUNCSIG$i) (result i32)
i32.const 3
)
(func $export/mul (; 1 ;) (type $FUNCSIG$i) (result i32)
i32.const 12
)
(func $start (; 2 ;) (type $v)
call $export/add
drop
call $export/mul
drop
)
(func $null (; 3 ;) (type $v)
(func $start (; 0 ;) (type $v)
nop
)
)