[LLVMdev] Is line number in DbgStopPointInst in LLVM accurate?

Török Edwin edwintorok at gmail.com
Thu Sep 24 13:57:00 PDT 2009

On 2009-09-24 22:34, hc2428 at columbia.edu wrote:
> Dear developers,
>     When I try to map line numbers in source code back to LLVM
> basicblocks, I meet some problems: there is a source file with 1500
> lines of code, but when I use BasicBlockPass to collect all
> DbgStopPoint instructions in this file, I can only get 500 lines of code.
>     The source code and the collected results are both attached.

Not all lines of the source code are executable, take blank lines, line
with only braces, comments, function prototypes as an example.

How many lines of source code are left after you remove those? More than

Best regards,

More information about the llvm-dev mailing list