[LLVMdev] How to get line number of a function in a bitcode file?

Devang Patel dpatel at apple.com
Fri Jul 8 14:09:46 PDT 2011


Hi Chen,

On Jul 8, 2011, at 11:56 AM, kobe James wrote:

> Hi All,
> 
> I hope to get some information about functions in a bitcode file. Say, if we have a function foo(), and the bitcode file is generated by a single source file, then I want to get the line number foo() locates in that source file.
> If the bitcode file is linked by multiple bitcode files, is it possible to also get which file foo() locates in?


If bitcocd file has debug info, it is possible however there is not any LLVM IR ready made function to get this info. It is easy to write one.

-
Devang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110708/6d8b364b/attachment.html>


More information about the llvm-dev mailing list