[PATCH] D17086: [NVPTX] emit .file directives for files referenced by subprograms.
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 10 11:23:03 PST 2016
Needs a test case, presumably?
On Wed, Feb 10, 2016 at 11:19 AM, Artem Belevich via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> 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;
> }
> }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160210/33bc80ea/attachment.html>
More information about the llvm-commits
mailing list