diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-13 22:26:30 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-13 22:26:30 +0000 |
commit | abbd6d6824eb3faee53254a5d165e6d42e3540ca (patch) | |
tree | e1e779b3dfe06feb590e163e5d3dc56441fd088a /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 3ca8f429b1a66daffddd77fd15baf048beff363c (diff) | |
download | bcm5719-llvm-abbd6d6824eb3faee53254a5d165e6d42e3540ca.tar.gz bcm5719-llvm-abbd6d6824eb3faee53254a5d165e6d42e3540ca.zip |
This reverts commit r242058, r242065, r242067.
The tests were failing on OS X.
Revert "[cuda] Driver changes to compile and stitch together host and device-side CUDA code."
Revert "Fixed regex to properly match '64' in the test case."
Revert "clang/test/Driver/cuda-options.cu REQUIRES clang-driver, at least."
llvm-svn: 242077
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
-rw-r--r-- | clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp index 66df1a5ba16..4a8a8a029e7 100644 --- a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp +++ b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp @@ -15,7 +15,6 @@ #include "clang/Basic/DiagnosticOptions.h" #include "clang/Driver/Compilation.h" #include "clang/Driver/Driver.h" -#include "clang/Driver/Action.h" #include "clang/Driver/Options.h" #include "clang/Driver/Tool.h" #include "clang/Frontend/CompilerInstance.h" @@ -62,21 +61,9 @@ clang::createInvocationFromCommandLine(ArrayRef<const char *> ArgList, } // We expect to get back exactly one command job, if we didn't something - // failed. CUDA compilation is an exception as it creates multiple jobs. If - // that's the case, we proceed with the first job. If caller needs particular - // CUDA job, it should be controlled via --cuda-{host|device}-only option - // passed to the driver. + // failed. const driver::JobList &Jobs = C->getJobs(); - bool CudaCompilation = false; - if (Jobs.size() > 1) { - for (auto &A : C->getActions()) - if (isa<driver::CudaDeviceAction>(A)) { - CudaCompilation = true; - break; - } - } - if (Jobs.size() == 0 || !isa<driver::Command>(*Jobs.begin()) || - (Jobs.size() > 1 && !CudaCompilation)) { + if (Jobs.size() != 1 || !isa<driver::Command>(*Jobs.begin())) { SmallString<256> Msg; llvm::raw_svector_ostream OS(Msg); Jobs.Print(OS, "; ", true); |