<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 10, 2015 at 6:29 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank" class="cremed">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Nov 10, 2015 at 3:24 PM, Diego Novillo via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank" class="cremed">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dnovillo added a comment.<br>
<br>
The one thing I don't understand about this patch is why it needs to add a new DW_*discriminator flag? But I don't know enough DWARF to decide whether using the existing flag is OK or not.<br></blockquote><div><br></div></span><div>The existing DW_*discriminator is for the line table (DW_LNE_set_discriminator). The new one is for the DIE attribute DW_AT_discriminator. The line table will only contain an entry for the inlined code, not the point of the inline call - the only evidence of that location is in the DIE tree (the inlined_subroutine), not the line table. So the discriminator needs to go there.</div></div></div></div></blockquote><div><br></div><div>Ah, thanks.</div><div></div></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Diego.</div></div>