[LLVMdev] Replacement for findStopPoint() in LLVM 2.7

John Criswell criswell at uiuc.edu
Tue Mar 16 08:00:08 PDT 2010


Dear LLVMers,

I'm updating some code to use the new LLVM 2.7 API.  One piece of this 
code uses the findStopPoint() function to find the source filename and 
line number information of an instruction.

What is the best way to do this under LLVM 2.7 now that the stop point 
intrinsic has been removed?  It appears that the debug information is 
attached as metadata, but what is the easiest way to extract the 
filename and line number information out of this metadata?

Thanks in advance.

-- John T.




More information about the llvm-dev mailing list