<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 31, 2020 at 11:01 AM Adrian Prantl <<a href="mailto:aprantl@apple.com">aprantl@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><br><div><br><blockquote type="cite"><div>On Mar 31, 2020, at 10:55 AM, David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>> wrote:</div><br><div><div dir="ltr">+1 to all that & cc'ing a few of the usual suspects as FYI</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 31, 2020 at 10:36 AM Pavel Labath via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
For me personally, the ability to write/edit syntactically correct dwarf<br>
easily is much more important than being able to generate "incorrect"<br>
dwarf -- I'm perfectly happy to continue to write the latter in<br>
assembly, but there is a lot that could be improved about the experience<br>
of writing "correct" dwarf. Ideally, I'd have a mode where I can just<br></blockquote></div></div></blockquote><div><br></div>Do we think that yaml2obj is the best format for this, or would high-level DWARF DIE <i>assembler directives </i><span style="font-style:normal">be a more useful abstraction level? If you think about the .loc directive, there is actually some prior art in assembler.</span></div></div></blockquote><div><br></div><div>.loc is necessary because it depends on encoding bit lengths of intervening instructions, etc. Otherwise the line table would be like other DWARF sections and not involve assembler-awareness.<br><br>I don't think it'd be a great idea to add the complexities of DWARF emission to the assembler (except where it's fundamentally necessary, like debug_line/.loc) - it'd be a lot of surface area to expose to users of LLVM, support in the future as DWARF standards change, etc.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><br></div><div>-- adrian<br><div><br></div></div></div></blockquote></div></div>