[PATCH] D17086: [NVPTX] emit .file directives for files referenced by subprograms.

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 11:19:13 PST 2016


tra created this revision.
tra added reviewers: jholewinski, jlebar.
tra added a subscriber: llvm-commits.
Herald added a subscriber: jholewinski.

.. so .loc directives referring to those files work correctly.


http://reviews.llvm.org/D17086

Files:
  lib/Target/NVPTX/NVPTXAsmPrinter.cpp

Index: lib/Target/NVPTX/NVPTXAsmPrinter.cpp
===================================================================
--- lib/Target/NVPTX/NVPTXAsmPrinter.cpp
+++ lib/Target/NVPTX/NVPTXAsmPrinter.cpp
@@ -798,6 +798,7 @@
     if (filenameMap.find(Filename) != filenameMap.end())
       continue;
     filenameMap[Filename] = i;
+    OutStreamer->EmitDwarfFileDirective(i, "", Filename);
     ++i;
   }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17086.47494.patch
Type: text/x-patch
Size: 398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160210/d01c7a16/attachment.bin>


More information about the llvm-commits mailing list