]> granicus.if.org Git - clang/commitdiff
[CUDA] s/OPT_nocuda_version_chec/OPT_no_cuda_version_check/.
authorJustin Lebar <jlebar@google.com>
Thu, 7 Jul 2016 18:24:28 +0000 (18:24 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 7 Jul 2016 18:24:28 +0000 (18:24 +0000)
Fix build breakage.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274782 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp
lib/Driver/Tools.cpp

index 15e9cf18b6354b50c5c96ca53a2cc68a7a17ceca..89e973a120907b33e96dfaf32633c313950954dd 100644 (file)
@@ -4725,7 +4725,7 @@ void CudaToolChain::AddCudaIncludeArgs(const ArgList &DriverArgs,
                                        ArgStringList &CC1Args) const {
   // Check our CUDA version if we're going to include the CUDA headers.
   if (!DriverArgs.hasArg(options::OPT_nocudainc) &&
-      !DriverArgs.hasArg(options::OPT_nocuda_version_check)) {
+      !DriverArgs.hasArg(options::OPT_no_cuda_version_check)) {
     StringRef Arch = DriverArgs.getLastArgValue(options::OPT_march_EQ);
     assert(!Arch.empty() && "Must have an explicit GPU arch.");
     CudaInstallation.CheckCudaVersionSupportsArch(StringToCudaArch(Arch));
index 50a35882d9b125bf8e1017588d50c1ebb6febc40..9adbe6053414c789317e1637177d8706e3119adc 100644 (file)
@@ -11147,7 +11147,7 @@ void NVPTX::Assembler::ConstructJob(Compilation &C, const JobAction &JA,
   const std::string& gpu_arch = gpu_archs[0];
 
   // Check that our installation's ptxas supports gpu_arch.
-  if (!Args.hasArg(options::OPT_nocuda_version_check)) {
+  if (!Args.hasArg(options::OPT_no_cuda_version_check)) {
     TC.cudaInstallation().CheckCudaVersionSupportsArch(
         StringToCudaArch(gpu_arch));
   }