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

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.

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

Line table mostly, but it is there.

-eric