summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-04-19 02:27:11 +0000
committerJustin Lebar <jlebar@google.com>2016-04-19 02:27:11 +0000
commitb41f33cf0212c73eeecc28972dbd461f23e46ce3 (patch)
treedcec3207194f79b838a8a97b4e8625309c1f19d8 /clang/lib/Driver/Tools.cpp
parentdc3c50434ec5f183b60d4b71e08d39f326093b89 (diff)
downloadbcm5719-llvm-b41f33cf0212c73eeecc28972dbd461f23e46ce3.tar.gz
bcm5719-llvm-b41f33cf0212c73eeecc28972dbd461f23e46ce3.zip
[CUDA] Add --no-cuda-noopt-debug, which disables --cuda-noopt-debug.
Reviewers: tra Subscribers: cfe-commits, jhen Differential Revision: http://reviews.llvm.org/D19251 llvm-svn: 266708
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 75424e87006..4dd860227dd 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -10956,7 +10956,8 @@ void NVPTX::Assembler::ConstructJob(Compilation &C, const JobAction &JA,
ArgStringList CmdArgs;
CmdArgs.push_back(TC.getTriple().isArch64Bit() ? "-m64" : "-m32");
- if (Args.getLastArg(options::OPT_cuda_noopt_device_debug)) {
+ if (Args.hasFlag(options::OPT_cuda_noopt_device_debug,
+ options::OPT_no_cuda_noopt_device_debug, false)) {
// ptxas does not accept -g option if optimization is enabled, so
// we ignore the compiler's -O* options if we want debug info.
CmdArgs.push_back("-g");
OpenPOWER on IntegriCloud