@@ -924,7 +924,7 @@ CudaToolChain::CudaToolChain(const Driver &D, const llvm::Triple &Triple,
924924 const ToolChain &HostTC, const ArgList &Args,
925925 const Action::OffloadKind OK)
926926 : NVPTXToolChain(D, Triple, HostTC.getTriple(), Args), HostTC(HostTC),
927- OK(OK) {}
927+ SYCLInstallation(D), OK(OK) {}
928928
929929void CudaToolChain::addClangTargetOptions (
930930 const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args,
@@ -941,8 +941,7 @@ void CudaToolChain::addClangTargetOptions(
941941 // If we are compiling SYCL kernels for Nvidia GPUs, we do not support Cuda
942942 // device code compatability, hence we do not set Cuda mode in that instance.
943943 if (DeviceOffloadingKind == Action::OFK_SYCL) {
944- toolchains::SYCLToolChain::AddSYCLIncludeArgs (getDriver (), DriverArgs,
945- CC1Args);
944+ SYCLInstallation.AddSYCLIncludeArgs (DriverArgs, CC1Args);
946945
947946 if (DriverArgs.hasArg (options::OPT_fsycl_fp32_prec_sqrt))
948947 CC1Args.push_back (" -fcuda-prec-sqrt" );
@@ -1205,8 +1204,7 @@ CudaToolChain::GetCXXStdlibType(const ArgList &Args) const {
12051204void CudaToolChain::AddClangSystemIncludeArgs (const ArgList &DriverArgs,
12061205 ArgStringList &CC1Args) const {
12071206 if (DriverArgs.hasArg (options::OPT_fsycl)) {
1208- toolchains::SYCLToolChain::AddSYCLIncludeArgs (getDriver (), DriverArgs,
1209- CC1Args);
1207+ SYCLInstallation.AddSYCLIncludeArgs (DriverArgs, CC1Args);
12101208 }
12111209 HostTC.AddClangSystemIncludeArgs (DriverArgs, CC1Args);
12121210
0 commit comments