Lines Matching refs:Path
80 auto addIfExists = [this](path_list &List, const std::string &Path) { in ToolChain() argument
81 if (getVFS().exists(Path)) in ToolChain()
82 List.push_back(Path); in ToolChain()
85 for (const auto &Path : getRuntimePaths()) in ToolChain() local
86 addIfExists(getLibraryPaths(), Path); in ToolChain()
87 for (const auto &Path : getStdlibPaths()) in ToolChain() local
88 addIfExists(getFilePaths(), Path); in ToolChain()
491 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRTPath() local
493 llvm::sys::path::append(Path, "lib", getOSLibName()); in getCompilerRTPath()
494 Path += SelectedMultilib.gccSuffix(); in getCompilerRTPath()
496 llvm::sys::path::append(Path, "lib"); in getCompilerRTPath()
498 llvm::sys::path::append(Path, "lib", getOSLibName()); in getCompilerRTPath()
500 return std::string(Path.str()); in getCompilerRTPath()
560 SmallString<128> Path(getCompilerRTPath()); in getCompilerRT() local
561 llvm::sys::path::append(Path, CRTBasename); in getCompilerRT()
562 return std::string(Path.str()); in getCompilerRT()
603 SmallString<128> Path(getDriver().ResourceDir); in getArchSpecificLibPath() local
604 llvm::sys::path::append(Path, "lib", getOSLibName(), in getArchSpecificLibPath()
606 return std::string(Path.str()); in getArchSpecificLibPath()
661 std::string Path(A->getValue()); in GetLinkerPath() local
662 if (!Path.empty()) { in GetLinkerPath()
663 if (llvm::sys::path::parent_path(Path).empty()) in GetLinkerPath()
664 Path = GetProgramPath(A->getValue()); in GetLinkerPath()
665 if (llvm::sys::fs::can_execute(Path)) { in GetLinkerPath()
668 return std::string(Path); in GetLinkerPath()
949 const Twine &Path) { in addSystemInclude() argument
951 CC1Args.push_back(DriverArgs.MakeArgString(Path)); in addSystemInclude()
964 const Twine &Path) { in addExternCSystemInclude() argument
966 CC1Args.push_back(DriverArgs.MakeArgString(Path)); in addExternCSystemInclude()
971 const Twine &Path) { in addExternCSystemIncludeIfExists() argument
972 if (llvm::sys::fs::exists(Path)) in addExternCSystemIncludeIfExists()
973 addExternCSystemInclude(DriverArgs, CC1Args, Path); in addExternCSystemIncludeIfExists()
980 for (const auto &Path : Paths) { in addSystemIncludes() local
982 CC1Args.push_back(DriverArgs.MakeArgString(Path)); in addSystemIncludes()
986 /*static*/ std::string ToolChain::concat(StringRef Path, const Twine &A, in concat() argument
989 SmallString<128> Result(Path); in concat()
998 SmallString<128> Path(IncludePath); in detectLibcxxVersion() local
999 llvm::sys::path::append(Path, "c++"); in detectLibcxxVersion()
1000 for (llvm::vfs::directory_iterator LI = getVFS().dir_begin(Path, EC), LE; in detectLibcxxVersion()
1087 std::string &Path) const { in isFastMathRuntimeAvailable()
1102 Path = GetFilePath("crtfastmath.o"); in isFastMathRuntimeAvailable()
1103 return (Path != "crtfastmath.o"); // Not found. in isFastMathRuntimeAvailable()
1108 std::string Path; in addFastMathRuntimeIfAvailable() local
1109 if (isFastMathRuntimeAvailable(Args, Path)) { in addFastMathRuntimeIfAvailable()
1110 CmdArgs.push_back(Args.MakeArgString(Path)); in addFastMathRuntimeIfAvailable()