From 82d8dc7a9f5ca1c7989ab227bf32edfcd7e4a3c1 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 5 Dec 2017 10:55:29 -0800 Subject: 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) --- test/debugInfo.asm.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/debugInfo.asm.js') 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 }; } -- cgit v1.2.3