OSDN Git Service

[DEBUGINFO, NVPTX] Disable emission of ',debug' option if only debug directives are...
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 6 Dec 2018 16:25:35 +0000 (16:25 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 6 Dec 2018 16:25:35 +0000 (16:25 +0000)
commitf37825c4aa02ee47358484047bac22d15b10e7e8
tree85330501fcb460cb06ac66a83dd59c2c6b445169
parenta9702ef6e8b957a94b75582e9f9f7e710ee26697
[DEBUGINFO, NVPTX] Disable emission of ',debug' option if only debug directives are allowed.

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: echristo

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348497 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
test/DebugInfo/NVPTX/debug-file-loc-only.ll