Lines Matching refs:TC

365 static std::string FindVisualStudioExecutable(const ToolChain &TC,  in FindVisualStudioExecutable()  argument
367 const auto &MSVC = static_cast<const toolchains::MSVCToolChain &>(TC); in FindVisualStudioExecutable()
371 return std::string(canExecute(TC.getVFS(), FilePath) ? FilePath.str() : Exe); in FindVisualStudioExecutable()
381 auto &TC = static_cast<const toolchains::MSVCToolChain &>(getToolChain()); in ConstructJob() local
404 TC.getSubDirectoryPath( in ConstructJob()
408 TC.getSubDirectoryPath(toolchains::MSVCToolChain::SubDirectoryType::Lib, in ConstructJob()
414 if (TC.useUniversalCRT()) { in ConstructJob()
416 if (TC.getUniversalCRTLibraryPath(Args, UniversalCRTLibPath)) in ConstructJob()
421 if (TC.getWindowsSDKLibraryPath(Args, WindowsSdkLibPath)) in ConstructJob()
428 for (const auto &LibPath : TC.getLibraryPaths()) { in ConstructJob()
429 if (TC.getVFS().exists(LibPath)) in ConstructJob()
432 auto CRTPath = TC.getCompilerRTPath(); in ConstructJob()
433 if (TC.getVFS().exists(CRTPath)) in ConstructJob()
464 if (TC.getSanitizerArgs().needsFuzzer()) { in ConstructJob()
468 TC.getCompilerRTArgString(Args, "fuzzer"))); in ConstructJob()
475 if (TC.getSanitizerArgs().needsAsanRt()) { in ConstructJob()
478 if (TC.getSanitizerArgs().needsSharedRt() || in ConstructJob()
481 CmdArgs.push_back(TC.getCompilerRTArgString(Args, Lib)); in ConstructJob()
485 TC.getArch() == llvm::Triple::x86 in ConstructJob()
491 TC.getCompilerRT(Args, "asan_dynamic_runtime_thunk"))); in ConstructJob()
493 CmdArgs.push_back(TC.getCompilerRTArgString(Args, "asan_dll_thunk")); in ConstructJob()
496 CmdArgs.push_back(TC.getCompilerRTArgString(Args, Lib)); in ConstructJob()
501 TC.getCompilerRT(Args, Lib))); in ConstructJob()
529 TC.getDriver().Dir + "/../lib")); in ConstructJob()
530 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob()
548 AddRunTimeLibs(TC, TC.getDriver(), CmdArgs, Args); in ConstructJob()
577 TC.addProfileRTLibs(Args, CmdArgs); in ConstructJob()
596 linkPath = FindVisualStudioExecutable(TC, "link.exe"); in ConstructJob()
598 if (!TC.FoundMSVCInstall() && !canExecute(TC.getVFS(), linkPath)) { in ConstructJob()
600 ClPath = TC.GetProgramPath("cl.exe"); in ConstructJob()
601 if (canExecute(TC.getVFS(), ClPath)) { in ConstructJob()
604 if (!canExecute(TC.getVFS(), linkPath)) in ConstructJob()
618 if (TC.getIsVS2017OrNewer() && in ConstructJob()
619 llvm::Triple(llvm::sys::getProcessTriple()).getArch() != TC.getArch()) { in ConstructJob()
656 TC.getSubDirectoryPath(SubDirectoryType::Bin) + in ConstructJob()
658 TC.getSubDirectoryPath(SubDirectoryType::Bin, "", HostArch) + in ConstructJob()
672 linkPath = TC.GetProgramPath(Linker.str().c_str()); in ConstructJob()