| /netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/ToolChains/ |
| H A D | WebAssembly.cpp | 47 ToolChain.getDriver().Diag(diag::err_drv_invalid_linker_name) in getLinkerPath() 98 ToolChain.getDriver().Diag(diag::err_drv_invalid_argument_to_option) in ConstructJob() 121 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob() 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() [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 | 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() 166 auto TmpNameMcin = C.getDriver().GetTemporaryPath(Name, "mcin"); in constructGenerateObjFileFromHIPFatBinary() 168 auto TmpNameFb = C.getDriver().GetTemporaryPath(Name, "hipfb"); in constructGenerateObjFileFromHIPFatBinary() 202 C.getDriver().Diag(clang::diag::err_unable_to_make_temp) << EC.message(); in constructGenerateObjFileFromHIPFatBinary() 238 getProgramPaths().push_back(getDriver().Dir); in HIPToolChain() 293 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs() 388 getDriver().Diag(diag::err_drv_no_such_file) << BCName; in getHIPDeviceLibs() [all …]
|
| 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() 202 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob()
|
| H A D | Darwin.cpp | 210 const Driver &D = getToolChain().getDriver(); in AddLinkArgs() 364 if (C.getDriver().embedBitcodeEnabled()) { in AddLinkArgs() 368 if (C.getDriver().embedBitcodeMarkerOnly() && Version[0] >= 278) { in AddLinkArgs() 551 getToolChain().getDriver().Diag(diag::err_drv_invalid_version_number) in ConstructJob() 565 checkRemarksOptions(getToolChain().getDriver(), Args, in ConstructJob() 592 getStatsFileName(Args, Output, Inputs[0], getToolChain().getDriver()); in ConstructJob() 661 StringRef Parallelism = getLTOParallelism(Args, getToolChain().getDriver()); in ConstructJob() 802 getProgramPaths().push_back(getDriver().getInstalledDir()); in MachO() 803 if (getDriver().getInstalledDir() != getDriver().Dir) in MachO() 804 getProgramPaths().push_back(getDriver().Dir); in MachO() [all …]
|
| 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 | 35 if (C.getDriver().isSaveTempsEnabled()) { in getOutputFileName() 40 C.getDriver().GetTemporaryPath(Base.str() + Postfix, Extension); in getOutputFileName() 78 TC.getDriver().Diag(diag::err_drv_undetermined_amdgpu_arch) << ErrMsg; in checkSystemForAMDGPU() 187 if (C.getDriver().isSaveTempsEnabled()) in ConstructJob() 202 getProgramPaths().push_back(getDriver().Dir); in AMDGPUOpenMPToolChain() 226 addOpenMPDeviceRTL(getDriver(), DriverArgs, CC1Args, BitcodeSuffix, in addClangTargetOptions() 238 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
|
| H A D | AIX.cpp | 82 const Driver &D = ToolChain.getDriver(); in ConstructJob() 179 getLibraryPaths().push_back(getDriver().SysRoot + "/usr/lib"); in AIX() 188 if (!getDriver().SysRoot.empty()) in GetHeaderSysroot() 189 return getDriver().SysRoot; in GetHeaderSysroot() 200 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 | 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() 247 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob() 386 llvm::sys::path::parent_path(getDriver().getInstalledDir()); in findClangRelativeSysroot() 401 getProgramPaths().push_back(getDriver().getInstalledDir()); in MinGW() 403 if (getDriver().SysRoot.size()) in MinGW() 404 Base = getDriver().SysRoot; in MinGW() 414 llvm::sys::path::parent_path(getDriver().getInstalledDir())); in MinGW() 559 SmallString<1024> P(getDriver().ResourceDir); in AddClangSystemIncludeArgs()
|
| 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 | 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() 251 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib"); in OpenBSD() 257 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 290 getDriver().SysRoot + "/usr/include/c++/v1"); in addLibCxxIncludePaths() 305 SmallString<128> Path(getDriver().SysRoot); in getCompilerRT()
|
| 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 | FreeBSD.cpp | 34 const auto &D = getToolChain().getDriver(); in ConstructJob() 144 const Driver &D = ToolChain.getDriver(); in ConstructJob() 385 D.getVFS().exists(getDriver().SysRoot + "/usr/lib32/crt1.o")) in FreeBSD() 386 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib32"); in FreeBSD() 388 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib"); in FreeBSD() 406 getDriver().SysRoot + "/usr/include/c++/v1"); in addLibCxxIncludePaths() 412 addLibStdCXXIncludePaths(getDriver().SysRoot + "/usr/include/c++/4.2", "", "", in addLibStdCxxIncludePaths()
|
| 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 | 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() 595 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 614 const Driver &D = getDriver(); in addLibCxxIncludePaths() 630 const Driver &D = getDriver(); in addLibStdCxxIncludePaths() 647 getDriver().Diag(diag::err_drv_invalid_stdlib_name) << A->getAsString(Args); in GetCXXStdlibType()
|
| H A D | MSVC.cpp | 388 !C.getDriver().IsCLMode()) { in ConstructJob() 435 if (!C.getDriver().IsCLMode() && Args.hasArg(options::OPT_L)) in ConstructJob() 527 TC.getDriver().Dir + "/../lib")); in ConstructJob() 528 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob() 546 AddRunTimeLibs(TC, TC.getDriver(), CmdArgs, Args); in ConstructJob() 603 C.getDriver().Diag(clang::diag::warn_drv_msvc_not_found); in ConstructJob() 605 C.getDriver().Diag(clang::diag::warn_drv_msvc_not_found); in ConstructJob() 685 getProgramPaths().push_back(getDriver().getInstalledDir()); in MSVCToolChain() 686 if (getDriver().getInstalledDir() != getDriver().Dir) in MSVCToolChain() 687 getProgramPaths().push_back(getDriver().Dir); in MSVCToolChain() [all …]
|
| 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()
|
| H A D | Minix.cpp | 49 const Driver &D = getToolChain().getDriver(); in ConstructJob() 103 getFilePaths().push_back(getDriver().Dir + "/../lib"); in Minix()
|
| /netbsd-src/external/apache2/llvm/dist/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() 410 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRTPath() 500 SmallString<128> Path(getDriver().ResourceDir); in getArchSpecificLibPath() 527 if (D.IsFlangMode() && getDriver().ShouldUseFlangCompiler(JA)) return getFlang(); in SelectTool() 528 if (getDriver().ShouldUseClangCompiler(JA)) return getClang(); in SelectTool() 566 getDriver().Diag(diag::err_drv_invalid_linker_name) << A->getAsString(Args); in GetLinkerPath() 584 getDriver().Diag(diag::warn_drv_fuse_ld_path); in GetLinkerPath() 611 getDriver().Diag(diag::err_drv_invalid_linker_name) << A->getAsString(Args); in GetLinkerPath() 717 tools::arm::setArchNameInTriple(getDriver(), Args, InputType, Triple); in ComputeLLVMTriple() 718 tools::arm::setFloatABIInTriple(getDriver(), Args, Triple); in ComputeLLVMTriple() [all …]
|