[CUDA] pass debug options to ptxas.
authorArtem Belevich <tra@google.com>
Tue, 16 Feb 2016 22:03:20 +0000 (22:03 +0000)
committerArtem Belevich <tra@google.com>
Tue, 16 Feb 2016 22:03:20 +0000 (22:03 +0000)
commit0a0e54c194f68a56521048f82b530a1989a3cda7
tree7c602aa2581952da145421bcca10b4f2341d9532
parent25628d3362b76b066d7baf7e68205e746db1d5f4
[CUDA] pass debug options to ptxas.

ptxas optimizations are disabled if we need to generate debug info
as ptxas does not accept '-g' otherwise.

Differential Revision: http://reviews.llvm.org/D17111

llvm-svn: 261018
clang/include/clang/Driver/Options.td
clang/lib/Driver/Tools.cpp
clang/test/Driver/cuda-external-tools.cu