<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">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">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><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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also, this is a final codegen issue?  That is, the actual AddDiscriminators pass is DTRT?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<a href="http://reviews.llvm.org/D14511" rel="noreferrer" target="_blank">http://reviews.llvm.org/D14511</a><br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>