[DEBUGINFO, NVPTX]DO not emit ',debug' option if no debug info or only debug directiv...
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 2 Nov 2018 13:47:47 +0000 (13:47 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 2 Nov 2018 13:47:47 +0000 (13:47 +0000)
commit8831ef7a16424e8584f807567c470f8f1ef46891
tree3d23fd6446a764b519e2ea59d325c4c323af7848
parent314fbfa1c4c6665c54a220eefb10a6f23010a352
[DEBUGINFO, NVPTX]DO not emit ',debug' option if no debug info or only debug directives are requested.

Summary:
If the output of debug directives only is requested, we should drop
emission of ',debug' option from the target directive. Required for
supporting of nvprof profiler.

Reviewers: probinson, echristo, dblaikie

Subscribers: Hahnfeld, jholewinski, llvm-commits, JDevlieghere, aprantl

Differential Revision: https://reviews.llvm.org/D46061

llvm-svn: 345972
llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp
llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.h
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
llvm/test/DebugInfo/NVPTX/debug-file-loc-only.ll [new file with mode: 0644]