Hi, I've got the cfe debug info to the point where it outputs correct
function info, stoppoints for statements (but not for declarations
anymore) and region ends at the beginning of the return block. So this
is about as far as I wanted to go with it.
However, there's one last big problem that I need some advice on. Running :
gcc -g -S -o foo.ll
produces bytecode that works under lli -force-interpreter on OS X (JIT
not working on my system)
and llvm-db can list sources and functions.
gcc -g -o foo
doesn't see any debug info.
Worse, it doesn't work:
that's a JIT error, OK, so:
% lli -force-interpreter loops.bc
Tried to execute an unknown external function: __main
failed assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible
That's not good.
Any advice on debugging this?