[LLVMdev] DEBUG INFO at the bytecode level

Zheng Wang jason.wangz at gmail.com
Wed May 26 03:11:46 PDT 2010


Check out DebugInfo.cpp in lib/Analysis



On 25 May 2010 23:41, Nehal <nbg2k7 at gmail.com> wrote:
> 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.
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



-- 
Best regards,

WANG Zheng




More information about the llvm-dev mailing list