[LLVMdev] Get line number for entry block of loop in LLVM 2.4

Devang Patel devang.patel at gmail.com
Wed Apr 22 10:55:37 PDT 2009

On Tue, Apr 21, 2009 at 8:38 PM, georgeematthew
<gmatthew3 at mail.gatech.edu> wrote:
> Hello all,
> When we have a pointer to a basic block, which is the entry of a loop, how
> do we get the line number of the source code coressponding to that basic
> block?
> Is this possible in LLVM 2.4, or do we need LLVM 2.5?

Line number information is available through llvm.dbg.stoppoint
intrinsic, *if* front-end generated this intrinsic.


More information about the llvm-dev mailing list