[LLVMdev] Do all the debug nodes in LLVM IR also compiles to DWARF?

Eric Christopher echristo at gmail.com
Thu Jun 18 12:14:57 PDT 2015


On Thu, Jun 18, 2015 at 12:09 PM David Blaikie <dblaikie at gmail.com> wrote:

> On Thu, Jun 18, 2015 at 11:19 AM, Riyad Parvez <riyad.parvez at uwaterloo.ca>
> wrote:
>
>> Hi
>>
>> As the title says, are all the debug nodes of LLVM IR avaialble in DWARF?
>>
>
> Yes (we haven't supported any other debug info formats - so anything in
> the LLVM IR is there so we can produce DWARF)
>
>

Technically we have a bit of codeview support in the tree :)

Line table mostly, but it is there.

-eric


> If I add a new custom MDNode in LLVM IR, can I expect the debug data will
>> be available in DWARF in the binary if I compile in debug mode?
>>
>
> No - the DWARF generation from metadata is all special cased, not a
> generic walk of nodes to DWARF.
>
>
>>
>> Thanks
>> Riyad
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150618/43fcb2b7/attachment.html>


More information about the llvm-dev mailing list