<div dir="ltr">Needs a test case, presumably?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 10, 2016 at 11:19 AM, Artem Belevich 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">tra created this revision.<br>
tra added reviewers: jholewinski, jlebar.<br>
tra added a subscriber: llvm-commits.<br>
Herald added a subscriber: jholewinski.<br>
<br>
.. so .loc directives referring to those files work correctly.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D17086" rel="noreferrer" target="_blank">http://reviews.llvm.org/D17086</a><br>
<br>
Files:<br>
  lib/Target/NVPTX/NVPTXAsmPrinter.cpp<br>
<br>
Index: lib/Target/NVPTX/NVPTXAsmPrinter.cpp<br>
===================================================================<br>
--- lib/Target/NVPTX/NVPTXAsmPrinter.cpp<br>
+++ lib/Target/NVPTX/NVPTXAsmPrinter.cpp<br>
@@ -798,6 +798,7 @@<br>
     if (filenameMap.find(Filename) != filenameMap.end())<br>
       continue;<br>
     filenameMap[Filename] = i;<br>
+    OutStreamer->EmitDwarfFileDirective(i, "", Filename);<br>
     ++i;<br>
   }<br>
 }<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>
<br></blockquote></div><br></div>