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.asm.js | |
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.asm.js')
-rw-r--r-- | test/debugInfo.asm.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/debugInfo.asm.js b/test/debugInfo.asm.js index 29b08575a..bfdc85780 100644 --- a/test/debugInfo.asm.js +++ b/test/debugInfo.asm.js @@ -81,6 +81,9 @@ function () { switch_reach($p) | 0; return ($rc$0|0); //@line 59950 "/tmp/emscripten_test_binaryen2_28hnAe/src.c" } - return { add: add, ret: ret, opts: opts, fib: fib, switch_reach: switch_reach }; + function nofile() { + nofile(); //@line 1337 + } + return { add: add, ret: ret, opts: opts, fib: fib, switch_reach: switch_reach, nofile: nofile }; } |