[LLVMdev] Source Code Location of an Instruction

Trevor Harmon Trevor.W.Harmon at nasa.gov
Tue Feb 16 12:49:56 PST 2010


On Feb 13, 2010, at 7:22 AM, Jingyue Wu wrote:

> I would like to know how to locate an LLVM instruction in the source
> code, i.e. to get the line number of its corresponding source code
> statement. I remember in LLVM 2.4, DbgStopPointInst is designed to
> help this locating, but it seems deprecated in the latest LLVM.

We were discussing that a few days ago:

http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-February/029245.html

Trevor




More information about the llvm-dev mailing list