[LLVMdev] DEBUG INFO at the bytecode level

Nehal nbg2k7 at gmail.com
Tue May 25 15:41:51 PDT 2010


Devang Patel <devang.patel <at> gmail.com> writes:

> 
> 2010/5/18 Zheng Wang <jason.wangz <at> gmail.com>:
> >
> > I found DebugInfo.cpp may be useful. Could you tell me which function
> > I should call inorder to know the source file name and the line number
> > for a particular instruction?
> >
> 
> See http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend
> At the end of  "C/C++ source file information" section, there is a
> small code snippet this describes how to extract this information.
> 
> -
> Devang
> 

Hi Devang,

I think the link you provided above is for LLVM 2.7. Is there any way to get 
source line number from bitcode in LLVM 2.5/2.6?

Thanks,
Nehal.







More information about the llvm-dev mailing list