Lines Matching defs:Path
42 #include "llvm/Support/Path.h"
93 auto addIfExists = [this](path_list &List, const std::string &Path) {
94 if (getVFS().exists(Path))
95 List.push_back(Path);
98 if (std::optional<std::string> Path = getRuntimePath())
99 getLibraryPaths().push_back(*Path);
100 if (std::optional<std::string> Path = getStdlibPath())
101 getFilePaths().push_back(*Path);
102 for (const auto &Path : getArchSpecificLibPaths())
103 addIfExists(getFilePaths(), Path);
622 SmallString<128> Path(getDriver().ResourceDir);
624 llvm::sys::path::append(Path, "lib", getOSLibName());
626 Path += SelectedMultilibs.back().gccSuffix();
629 llvm::sys::path::append(Path, "lib");
631 llvm::sys::path::append(Path, "lib", getOSLibName());
633 return std::string(Path);
682 SmallString<128> Path;
688 if (Path.empty())
689 Path = P;
692 Path.clear();
699 if (Path.empty() || getVFS().exists(OldPath))
705 return std::string(Path);
769 if (auto Path = getPathForTriple(getTriple()))
770 return *Path;
790 if (auto Path = getPathForTriple(ArmTriple))
791 return *Path;
828 SmallString<128> Path(getDriver().ResourceDir);
829 llvm::sys::path::append(Path, "lib");
831 llvm::sys::path::append(Path, S);
832 Paths.push_back(std::string(Path));
893 std::string Path(A->getValue());
894 if (!Path.empty()) {
895 if (llvm::sys::path::parent_path(Path).empty())
896 Path = GetProgramPath(A->getValue());
897 if (llvm::sys::fs::can_execute(Path)) {
900 return std::string(Path);
1182 const Twine &Path) {
1184 CC1Args.push_back(DriverArgs.MakeArgString(Path));
1197 const Twine &Path) {
1199 CC1Args.push_back(DriverArgs.MakeArgString(Path));
1204 const Twine &Path) {
1205 if (llvm::sys::fs::exists(Path))
1206 addExternCSystemInclude(DriverArgs, CC1Args, Path);
1213 for (const auto &Path : Paths) {
1215 CC1Args.push_back(DriverArgs.MakeArgString(Path));
1219 /*static*/ std::string ToolChain::concat(StringRef Path, const Twine &A,
1222 SmallString<128> Result(Path);
1231 SmallString<128> Path(IncludePath);
1232 llvm::sys::path::append(Path, "c++");
1233 for (llvm::vfs::directory_iterator LI = getVFS().dir_begin(Path, EC), LE;
1320 std::string &Path) const {
1351 Path = GetFilePath("crtfastmath.o");
1352 return (Path != "crtfastmath.o"); // Not found.
1357 std::string Path;
1358 if (isFastMathRuntimeAvailable(Args, Path)) {
1359 CmdArgs.push_back(Args.MakeArgString(Path));