diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-12-05 10:55:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 10:55:29 -0800 |
commit | 82d8dc7a9f5ca1c7989ab227bf32edfcd7e4a3c1 (patch) | |
tree | 4c80e609349117435eccccdc1a304c011078b029 /test/debugInfo.fromasm.imprecise | |
parent | 42acc22254c89b035bbaba512c86c1784545278d (diff) | |
download | binaryen-82d8dc7a9f5ca1c7989ab227bf32edfcd7e4a3c1.tar.gz binaryen-82d8dc7a9f5ca1c7989ab227bf32edfcd7e4a3c1.tar.bz2 binaryen-82d8dc7a9f5ca1c7989ab227bf32edfcd7e4a3c1.zip |
Handle debug info without a filename in asm2wasm (#1249)
* support debug info without a filename in asm2wasm input (which can happen if llvm doesn't know the file, only the line)
Diffstat (limited to 'test/debugInfo.fromasm.imprecise')
-rw-r--r-- | test/debugInfo.fromasm.imprecise | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/debugInfo.fromasm.imprecise b/test/debugInfo.fromasm.imprecise index 1cfc5d114..5db316589 100644 --- a/test/debugInfo.fromasm.imprecise +++ b/test/debugInfo.fromasm.imprecise @@ -9,6 +9,7 @@ (export "opts" (func $opts)) (export "fib" (func $fib)) (export "switch_reach" (func $switch_reach)) + (export "nofile" (func $nofile)) (func $add (; 0 ;) (param $0 i32) (param $1 i32) (result i32) ;;@ tests/other_file.cpp:314159:0 (i32.add @@ -180,4 +181,8 @@ ;;@ /tmp/emscripten_test_binaryen2_28hnAe/src.c:59950:0 (get_local $1) ) + (func $nofile (; 5 ;) + ;;@ (unknown):1337:0 + (call $nofile) + ) ) |