Riyad Parvez
2015-Jun-18 18:19 UTC
[LLVMdev] Do all the debug nodes in LLVM IR also compiles to DWARF?
Hi As the title says, are all the debug nodes of LLVM IR avaialble in DWARF? 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? Thanks Riyad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150618/9cb7ac72/attachment.html>
David Blaikie
2015-Jun-18 19:02 UTC
[LLVMdev] Do all the debug nodes in LLVM IR also compiles to DWARF?
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)> 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 > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150618/825f9650/attachment.html>
Eric Christopher
2015-Jun-18 19:14 UTC
[LLVMdev] Do all the debug nodes in LLVM IR also compiles to DWARF?
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>