Mapping between LLVM bitcode and C source


Is there a way, from within an opt pass, to find the correspondence
between an LLVM IR object and C source code (basically line number
info similar to the one used with gcc + gdb to help debugging ),
assuming either a llvm-gcc front end ?

Sorry if this question was asked before.

Thanks for your time.

- Prakash

Same question here!

Have a look at include/llvm/Analysis/DebugInfo.h, and

Best regards,