summaryrefslogtreecommitdiffstats
path: root/lib/Driver/ToolChains/Cuda.h
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-08-08 11:20:17 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-08-08 11:20:17 +0000
commit97c6e987f83a1b1c855651e00d5f59fcf58f6143 (patch)
tree8ecb1ecabecb07568222bbfb18f9c9251ffeca79 /lib/Driver/ToolChains/Cuda.h
parente21edc4d3c662f6bfc601a4975106f4d687edd9d (diff)
Revert r310291, r310300 and r310332 because of test failure on Darwin
The commit r310291 introduced the failure. r310332 was a test fix commit and r310300 was a followup commit. I reverted these two to avoid merge conflicts when reverting. The 'openmp-offload.c' test is failing on Darwin because the following run lines: // RUN: touch %t1.o // RUN: touch %t2.o // RUN: %clang -### -no-canonical-prefixes -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda -save-temps -no-canonical-prefixes %t1.o %t2.o 2>&1 \ // RUN: | FileCheck -check-prefix=CHK-TWOCUBIN %s trigger the following assertion: Driver.cpp:3418: assert(CachedResults.find(ActionTC) != CachedResults.end() && "Result does not exist??"); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains/Cuda.h')
-rw-r--r--lib/Driver/ToolChains/Cuda.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/Driver/ToolChains/Cuda.h b/lib/Driver/ToolChains/Cuda.h
index 1e30aa7270..e66fc23d82 100644
--- a/lib/Driver/ToolChains/Cuda.h
+++ b/lib/Driver/ToolChains/Cuda.h
@@ -112,20 +112,6 @@ class LLVM_LIBRARY_VISIBILITY Linker : public Tool {
const char *LinkingOutput) const override;
};
-class LLVM_LIBRARY_VISIBILITY OpenMPLinker : public Tool {
- public:
- OpenMPLinker(const ToolChain &TC)
- : Tool("NVPTX::OpenMPLinker", "fatbinary", TC, RF_Full, llvm::sys::WEM_UTF8,
- "--options-file") {}
-
- bool hasIntegratedCPP() const override { return false; }
-
- void ConstructJob(Compilation &C, const JobAction &JA,
- const InputInfo &Output, const InputInfoList &Inputs,
- const llvm::opt::ArgList &TCArgs,
- const char *LinkingOutput) const override;
-};
-
} // end namespace NVPTX
} // end namespace tools
@@ -134,8 +120,7 @@ namespace toolchains {
class LLVM_LIBRARY_VISIBILITY CudaToolChain : public ToolChain {
public:
CudaToolChain(const Driver &D, const llvm::Triple &Triple,
- const ToolChain &HostTC, const llvm::opt::ArgList &Args,
- const Action::OffloadKind OK);
+ const ToolChain &HostTC, const llvm::opt::ArgList &Args);
virtual const llvm::Triple *getAuxTriple() const override {
return &HostTC.getTriple();
@@ -184,9 +169,6 @@ public:
protected:
Tool *buildAssembler() const override; // ptxas
Tool *buildLinker() const override; // fatbinary (ok, not really a linker)
-
-private:
- const Action::OffloadKind OK;
};
} // end namespace toolchains