| /freebsd-13.1/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | WebAssembly.cpp | 173 getProgramPaths().push_back(getDriver().getInstalledDir()); in WebAssembly() 175 auto SysRoot = getDriver().SysRoot; in WebAssembly() 184 getMultiarchTriple(getDriver(), Triple, SysRoot); in WebAssembly() 229 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions() 234 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions() 239 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions() 244 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions() 338 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType() 349 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 387 getMultiarchTriple(getDriver(), getTriple(), getDriver().SysRoot); in AddClangCXXStdlibIncludeArgs() [all …]
|
| H A D | HIP.cpp | 50 auto &D = TC.getDriver(); in constructLldCommand() 80 if (C.getDriver().isSaveTempsEnabled()) in constructLldCommand() 121 if (getAMDGPUCodeObjectVersion(C.getDriver(), Args) >= 4) in constructHIPFatbinCommand() 162 if (C.getDriver().isSaveTempsEnabled()) { in constructGenerateObjFileFromHIPFatBinary() 239 getProgramPaths().push_back(getDriver().Dir); in HIPToolChain() 294 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs() 389 getDriver().Diag(diag::err_drv_no_such_file) << BCName; in getHIPDeviceLibs() 393 getDriver().Diag(diag::err_drv_no_rocm_device_lib) << 0; in getHIPDeviceLibs() 409 getDriver().Diag(DiagID); in getHIPDeviceLibs() 438 getDriver().Diag(clang::diag::err_drv_bad_target_id) in checkTargetID() [all …]
|
| H A D | MipsLinux.cpp | 46 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 70 if (!getDriver().SysRoot.empty()) in computeSysRoot() 71 return getDriver().SysRoot + SelectedMultilib.osSuffix(); in computeSysRoot() 73 const std::string InstalledDir(getDriver().getInstalledDir()); in computeSysRoot() 88 getDriver().Diag(clang::diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType() 100 Path = getDriver().getInstalledDir() + Path + "/c++/v1"; in addLibCxxIncludePaths() 122 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRT()
|
| H A D | BareMetal.cpp | 97 getProgramPaths().push_back(getDriver().getInstalledDir()); in BareMetal() 98 if (getDriver().getInstalledDir() != getDriver().Dir) in BareMetal() 99 getProgramPaths().push_back(getDriver().Dir); in BareMetal() 170 SmallString<128> Dir(getDriver().ResourceDir); in getRuntimesDir() 177 if (!getDriver().SysRoot.empty()) in computeSysRoot() 178 return getDriver().SysRoot + SelectedMultilib.osSuffix(); in computeSysRoot() 181 llvm::sys::path::append(SysRootDir, getDriver().Dir, "../lib/clang-runtimes", in computeSysRoot() 182 getDriver().getTargetTriple()); in computeSysRoot() 194 SmallString<128> Dir(getDriver().ResourceDir); in AddClangSystemIncludeArgs() 239 LI = getDriver().getVFS().dir_begin(Dir.str(), EC), in AddClangCXXStdlibIncludeArgs()
|
| H A D | DragonFly.cpp | 58 const Driver &D = getToolChain().getDriver(); in ConstructJob() 186 getProgramPaths().push_back(getDriver().getInstalledDir()); in DragonFly() 187 if (getDriver().getInstalledDir() != getDriver().Dir) in DragonFly() 188 getProgramPaths().push_back(getDriver().Dir); in DragonFly() 190 getFilePaths().push_back(getDriver().Dir + "/../lib"); in DragonFly()
|
| H A D | RISCVToolchain.cpp | 120 if (!getDriver().SysRoot.empty()) in computeSysRoot() 121 return getDriver().SysRoot; in computeSysRoot() 131 llvm::sys::path::append(SysRootDir, getDriver().Dir, "..", in computeSysRoot() 132 getDriver().getTargetTriple()); in computeSysRoot() 147 const Driver &D = ToolChain.getDriver(); in ConstructJob() 203 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob()
|
| H A D | PS4CPU.cpp | 100 const Driver &D = ToolChain.getDriver(); in ConstructJob() 175 getDriver().Diag(clang::diag::warn_drv_ps4_sdk_dir) << EnvValue; in PS4CPU() 178 PS4SDKDir = getDriver().Dir; in PS4CPU() 190 getDriver().Diag(clang::diag::warn_missing_sysroot) << PrefixDir; in PS4CPU() 201 getDriver().Diag(clang::diag::warn_drv_unable_to_find_directory_expected) in PS4CPU() 213 getDriver().Diag(clang::diag::warn_drv_unable_to_find_directory_expected) in PS4CPU() 247 getDriver().Diag(clang::diag::err_drv_unsupported_opt_for_target) in addClangTargetOptions()
|
| H A D | AMDGPUOpenMP.cpp | 37 if (C.getDriver().isSaveTempsEnabled()) { in getOutputFileName() 42 C.getDriver().GetTemporaryPath(Base.str() + Postfix, Extension); in getOutputFileName() 80 TC.getDriver().Diag(diag::err_drv_undetermined_amdgpu_arch) << ErrMsg; in checkSystemForAMDGPU() 209 if (C.getDriver().isSaveTempsEnabled()) in ConstructJob() 224 getProgramPaths().push_back(getDriver().Dir); in AMDGPUOpenMPToolChain() 255 addOpenMPDeviceRTL(getDriver(), DriverArgs, CC1Args, BitcodeSuffix, in addClangTargetOptions() 267 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
|
| H A D | Darwin.cpp | 214 const Driver &D = getToolChain().getDriver(); in AddLinkArgs() 368 if (C.getDriver().embedBitcodeEnabled()) { in AddLinkArgs() 804 if (getDriver().getInstalledDir() != getDriver().Dir) in MachO() 1104 SmallString<128> Dir(getDriver().ResourceDir); in AddLinkRuntimeLib() 1835 const OptTable &Opts = getDriver().getOpts(); in AddDeploymentTarget() 2017 if (!getDriver().SysRoot.empty()) in GetHeaderSysroot() 2018 return getDriver().SysRoot; in GetHeaderSysroot() 2024 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 2267 SmallString<128> P(getDriver().ResourceDir); in AddCCKextLibArgs() 2291 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs() [all …]
|
| H A D | AIX.cpp | 82 const Driver &D = ToolChain.getDriver(); in ConstructJob() 181 getLibraryPaths().push_back(getDriver().SysRoot + "/usr/lib"); in AIX() 190 if (!getDriver().SysRoot.empty()) in GetHeaderSysroot() 191 return getDriver().SysRoot; in GetHeaderSysroot() 202 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
|
| H A D | NaCl.cpp | 57 const Driver &D = ToolChain.getDriver(); in ConstructJob() 216 std::string FilePath(getDriver().Dir + "/../"); in NaClToolChain() 219 std::string ProgPath(getDriver().Dir + "/../"); in NaClToolChain() 222 std::string ToolPath(getDriver().ResourceDir + "/lib/"); in NaClToolChain() 258 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 316 const Driver &D = getDriver(); in addLibCxxIncludePaths() 347 getDriver().Diag(clang::diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
|
| H A D | MSP430.cpp | 136 if (!getDriver().SysRoot.empty()) in computeSysRoot() 137 return getDriver().SysRoot; in computeSysRoot() 143 llvm::sys::path::append(Dir, getDriver().Dir, ".."); in computeSysRoot() 194 const Driver &D = ToolChain.getDriver(); in AddDefaultLibs() 221 const Driver &D = ToolChain.getDriver(); in AddEndFiles() 269 const Driver &D = ToolChain.getDriver(); in ConstructJob()
|
| H A D | MinGW.cpp | 73 bool CXX = getToolChain().getDriver().CCCIsCXX(); in AddLibGCC() 83 AddRunTimeLibs(getToolChain(), getToolChain().getDriver(), CmdArgs, Args); in AddLibGCC() 100 const Driver &D = TC.getDriver(); in ConstructJob() 250 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob() 390 llvm::sys::path::parent_path(getDriver().getInstalledDir()); in findClangRelativeSysroot() 405 getProgramPaths().push_back(getDriver().getInstalledDir()); in MinGW() 407 if (getDriver().SysRoot.size()) in MinGW() 408 Base = getDriver().SysRoot; in MinGW() 418 llvm::sys::path::parent_path(getDriver().getInstalledDir())); in MinGW() 563 SmallString<1024> P(getDriver().ResourceDir); in AddClangSystemIncludeArgs()
|
| H A D | Haiku.cpp | 27 getDriver().SysRoot + "/system/develop/headers/c++/v1"); in addLibCxxIncludePaths() 32 addLibStdCXXIncludePaths(getDriver().SysRoot + "/system/develop/headers/c++", in addLibStdCxxIncludePaths()
|
| H A D | Fuchsia.cpp | 38 const Driver &D = ToolChain.getDriver(); in ConstructJob() 180 getProgramPaths().push_back(getDriver().getInstalledDir()); in Fuchsia() 181 if (getDriver().getInstalledDir() != D.Dir) in Fuchsia() 296 getDriver().Diag(clang::diag::err_drv_invalid_rtlib_name) in GetRuntimeLibType() 308 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType() 325 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 365 const Driver &D = getDriver(); in AddClangCXXStdlibIncludeArgs()
|
| H A D | VEToolchain.cpp | 74 SmallString<128> P(getDriver().ResourceDir); in AddClangSystemIncludeArgs() 88 getDriver().SysRoot + "/opt/nec/ve/include"); in AddClangSystemIncludeArgs() 116 SmallString<128> P(getDriver().ResourceDir); in AddClangCXXStdlibIncludeArgs()
|
| H A D | OpenBSD.cpp | 97 const Driver &D = getToolChain().getDriver(); in ConstructJob() 258 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib"); in OpenBSD() 264 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 297 getDriver().SysRoot + "/usr/include/c++/v1"); in addLibCxxIncludePaths() 312 SmallString<128> Path(getDriver().SysRoot); in getCompilerRT()
|
| H A D | CloudABI.cpp | 31 const Driver &D = ToolChain.getDriver(); in ConstructJob() 105 SmallString<128> P(getDriver().Dir); in CloudABI() 112 SmallString<128> P(getDriver().Dir); in addLibCxxIncludePaths()
|
| H A D | FreeBSD.cpp | 34 const auto &D = getToolChain().getDriver(); in ConstructJob() 144 const Driver &D = ToolChain.getDriver(); in ConstructJob() 387 D.getVFS().exists(getDriver().SysRoot + "/usr/lib32/crt1.o")) in FreeBSD() 388 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib32"); in FreeBSD() 390 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib"); in FreeBSD() 408 getDriver().SysRoot + "/usr/include/c++/v1"); in addLibCxxIncludePaths() 414 addLibStdCXXIncludePaths(getDriver().SysRoot + "/usr/include/c++/4.2", "", "", in addLibStdCxxIncludePaths()
|
| H A D | Hexagon.cpp | 136 const Driver &D = HTC.getDriver(); in ConstructJob() 208 const Driver &D = HTC.getDriver(); in constructHexagonLinkArgs() 423 const Driver &D = getDriver(); in getHexagonTargetDir() 455 const Driver &D = getDriver(); in getHexagonLibraryPaths() 597 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 636 const Driver &D = getDriver(); in addLibCxxIncludePaths() 652 const Driver &D = getDriver(); in addLibStdCxxIncludePaths() 669 getDriver().Diag(diag::err_drv_invalid_stdlib_name) << A->getAsString(Args); in GetCXXStdlibType()
|
| H A D | MSVC.cpp | 389 !C.getDriver().IsCLMode()) { in ConstructJob() 436 if (!C.getDriver().IsCLMode() && Args.hasArg(options::OPT_L)) in ConstructJob() 530 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob() 548 AddRunTimeLibs(TC, TC.getDriver(), CmdArgs, Args); in ConstructJob() 605 C.getDriver().Diag(clang::diag::warn_drv_msvc_not_found); in ConstructJob() 607 C.getDriver().Diag(clang::diag::warn_drv_msvc_not_found); in ConstructJob() 687 getProgramPaths().push_back(getDriver().getInstalledDir()); in MSVCToolChain() 688 if (getDriver().getInstalledDir() != getDriver().Dir) in MSVCToolChain() 689 getProgramPaths().push_back(getDriver().Dir); in MSVCToolChain() 708 getDriver().Diag(clang::diag::err_no_external_assembler); in buildAssembler() [all …]
|
| H A D | Minix.cpp | 49 const Driver &D = getToolChain().getDriver(); in ConstructJob() 103 getFilePaths().push_back(getDriver().Dir + "/../lib"); in Minix()
|
| H A D | NetBSD.cpp | 118 const Driver &D = ToolChain.getDriver(); in ConstructJob() 436 getDriver().Dir + "/../include/c++/v1", in addLibCxxIncludePaths() 438 getDriver().SysRoot + "/usr/include/c++/v1", in addLibCxxIncludePaths() 440 getDriver().SysRoot + "/usr/include/c++", in addLibCxxIncludePaths() 455 addLibStdCXXIncludePaths(getDriver().SysRoot + "/usr/include/g++", "", "", in addLibStdCxxIncludePaths()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Driver/ |
| H A D | Compilation.cpp | 135 getDriver().Diag(diag::err_drv_unable_to_remove_file) in CleanupFile() 166 if ((getDriver().CCPrintOptions || in ExecuteCommand() 167 getArgs().hasArg(options::OPT_v)) && !getDriver().CCGenDiagnostics) { in ExecuteCommand() 173 if (getDriver().CCPrintOptions && in ExecuteCommand() 174 !getDriver().CCPrintOptionsFilename.empty()) { in ExecuteCommand() 177 getDriver().CCPrintOptionsFilename.c_str(), EC, in ExecuteCommand() 180 getDriver().Diag(diag::err_drv_cc_print_options_failure) in ExecuteCommand() 188 if (getDriver().CCPrintOptions) in ExecuteCommand() 191 C.Print(*OS, "\n", /*Quote=*/getDriver().CCPrintOptions); in ExecuteCommand() 201 getDriver().Diag(diag::err_drv_command_failure) << Error; in ExecuteCommand() [all …]
|
| H A D | ToolChain.cpp | 100 return getDriver().getVFS(); in getVFS() 413 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRTPath() 503 SmallString<128> Path(getDriver().ResourceDir); in getArchSpecificLibPath() 587 getDriver().Diag(diag::warn_drv_fuse_ld_path); in GetLinkerPath() 772 getDriver().Diag(diag::err_drv_invalid_rtlib_name) in GetRuntimeLibType() 808 getDriver().Diag(diag::err_drv_invalid_unwindlib_name) in GetUnwindLibType() 833 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType() 931 return getDriver().CCCIsCXX() && in ShouldLinkCXXStdlib() 1093 const OptTable &Opts = getDriver().getOpts(); in TranslateOpenMPTargetArgs() 1163 const OptTable &Opts = getDriver().getOpts(); in TranslateXarchArgs() [all …]
|