Hi,
I am generating llvm IR code for C source code using clang as the
front end. I am wondering if there is any way of mapping an llvm IR
line number back to its C source code line number.
Thanks
Sincerely
Arvind
Hi,
I am generating llvm IR code for C source code using clang as the
front end. I am wondering if there is any way of mapping an llvm IR
line number back to its C source code line number.
Thanks
Sincerely
Arvind
You could use something like:
http://llvm.org/docs/LangRef.html#int_annotation
and just make a lot of it blank. You could also look and see what clang does for line number debug information.
-eric