summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-03-29 16:24:16 +0000
committerJustin Lebar <jlebar@google.com>2016-03-29 16:24:16 +0000
commit25c4a81e79b08c5781a7d0d551d9a21771b01e7b (patch)
treedbed6713077393b7d142f02bffab9827ec3c5763 /clang/lib/Driver/Tools.cpp
parent32de9628e3f51fb77f5943b159cf45008576e83e (diff)
downloadbcm5719-llvm-25c4a81e79b08c5781a7d0d551d9a21771b01e7b.tar.gz
bcm5719-llvm-25c4a81e79b08c5781a7d0d551d9a21771b01e7b.zip
[CUDA] Remove three obsolete CUDA cc1 flags.
Summary: * -fcuda-target-overloads Previously unconditionally set to true by the driver. Necessary for correct functioning of the compiler -- our CUDA headers wrapper won't compile without this. * -fcuda-disable-target-call-checks Previously unconditionally set to true by the driver. Necessary to compile almost any external CUDA code -- almost all libraries assume that host+device code can call host or device functions. * -fcuda-allow-host-calls-from-host-device No effect when target overloading is enabled. Reviewers: tra Subscribers: rsmith, cfe-commits Differential Revision: http://reviews.llvm.org/D18416 llvm-svn: 264739
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index abeeaca6850..a64961c3152 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -3628,8 +3628,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
assert(AuxToolChain != nullptr && "No aux toolchain.");
CmdArgs.push_back("-aux-triple");
CmdArgs.push_back(Args.MakeArgString(AuxToolChain->getTriple().str()));
- CmdArgs.push_back("-fcuda-target-overloads");
- CmdArgs.push_back("-fcuda-disable-target-call-checks");
}
if (Triple.isOSWindows() && (Triple.getArch() == llvm::Triple::arm ||
OpenPOWER on IntegriCloud