[LLVMdev] help

John Criswell criswell at uiuc.edu
Thu Jul 22 07:27:44 PDT 2010


RAJWINDER SINGH wrote:
> Let us say there is an Instruction I in an IR.
> Is there any function using which I can know that in which line number 
> this Instruction I lies in the original c++ file??  

Try looking at http://llvm.org/docs/SourceLevelDebugging.html; it 
provides information on the source level debugging metadata in LLVM IR.

-- John T.




More information about the llvm-dev mailing list