georgeematthew
2009-Apr-22 03:38 UTC
[LLVMdev] Get line number for entry block of loop in LLVM 2.4
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? Thanks George Matthew,Kevin H -- View this message in context: http://www.nabble.com/Get-line-number-for-entry-block-of-loop-in--LLVM-2.4-tp23169132p23169132.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
Devang Patel
2009-Apr-22 17:55 UTC
[LLVMdev] Get line number for entry block of loop in LLVM 2.4
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. - Devang