[llvm-dev] How to debug .ll file with segmentation fault?

Peng Yu via llvm-dev llvm-dev at lists.llvm.org
Sat Jan 26 06:52:21 PST 2019


Are you suggesting to compile it to executable? When I do this, there
is no segmentation fault. So this is due to a bug in lli?

$ llc -filetype=obj bash_trcr_B.bc
$ clang -Lxxx -lxxx  /tmp/y/bash_trcr_B.o -o /tmp/y/bash_trcr_B.exe

> I suggest you try to AOT compile the IR and debug it in the same way as you would with native code.

-- 
Regards,
Peng


More information about the llvm-dev mailing list