Lines Matching refs:Path

86 static std::string getOutputPath(StringRef Path) {  in getOutputPath()  argument
87 auto P = Path.find_last_of("\\/"); in getOutputPath()
88 StringRef S = (P == StringRef::npos) ? Path : Path.substr(P + 1); in getOutputPath()
102 static std::future<MBErrPair> createFutureForFile(std::string Path) { in createFutureForFile() argument
111 auto MBOrErr = MemoryBuffer::getFile(Path, in createFutureForFile()
189 void LinkerDriver::enqueuePath(StringRef Path, bool WholeArchive) { in enqueuePath() argument
191 std::make_shared<std::future<MBErrPair>>(createFutureForFile(Path)); in enqueuePath()
192 std::string PathStr = Path; in enqueuePath()
293 if (Optional<StringRef> Path = findLib(Arg->getValue())) in parseDirectives() local
294 enqueuePath(*Path, false); in parseDirectives()
338 SmallString<128> Path = Dir; in doFindFile() local
339 sys::path::append(Path, Filename); in doFindFile()
340 if (sys::fs::exists(Path.str())) in doFindFile()
341 return Saver.save(Path.str()); in doFindFile()
343 Path.append(".obj"); in doFindFile()
344 if (sys::fs::exists(Path.str())) in doFindFile()
345 return Saver.save(Path.str()); in doFindFile()
351 static Optional<sys::fs::UniqueID> getUniqueID(StringRef Path) { in getUniqueID() argument
353 if (sys::fs::getUniqueID(Path, Ret)) in getUniqueID()
361 StringRef Path = doFindFile(Filename); in findFile() local
363 if (Optional<sys::fs::UniqueID> ID = getUniqueID(Path)) { in findFile()
369 if (Path.endswith_lower(".lib")) in findFile()
370 VisitedLibs.insert(sys::path::filename(Path)); in findFile()
371 return Path; in findFile()
409 StringRef Path = doFindLib(Filename); in findLib() local
410 if (Config->NoDefaultLibs.count(Path)) in findLib()
413 if (Optional<sys::fs::UniqueID> ID = getUniqueID(Path)) in findLib()
416 return Path; in findLib()
426 StringRef Path; in addLibSearchPaths() local
427 std::tie(Path, Env) = Env.split(';'); in addLibSearchPaths()
428 SearchPaths.push_back(Path); in addLibSearchPaths()
526 for (StringRef Path : SearchPaths) { in createResponseFile() local
527 std::string RelPath = relativeToRoot(Path); in createResponseFile()
531 for (StringRef Path : FilePaths) in createResponseFile() local
532 OS << quote(relativeToRoot(Path)) << "\n"; in createResponseFile()
664 std::string Path = getImplibPath(); in createImportLibrary() local
667 HandleError(writeImportLibrary(LibName, Path, Exports, Config->Machine, in createImportLibrary()
675 Path, /*FileSize*/ -1, /*RequiresNullTerminator*/ false); in createImportLibrary()
677 HandleError(writeImportLibrary(LibName, Path, Exports, Config->Machine, in createImportLibrary()
684 sys::fs::createUniqueFile(Path + ".tmp-%%%%%%%%.lib", TmpName)) in createImportLibrary()
685 fatal("cannot create temporary file for import library " + Path + ": " + in createImportLibrary()
698 HandleError(errorCodeToError(sys::fs::rename(TmpName, Path))); in createImportLibrary()
704 static void parseModuleDefs(StringRef Path) { in parseModuleDefs() argument
706 MemoryBuffer::getFile(Path, -1, false, true), "could not open " + Path); in parseModuleDefs()
789 StringRef Path = Arg.substr(1); in parseOrderFile() local
791 MemoryBuffer::getFile(Path, -1, false, true), "could not open " + Path); in parseOrderFile()
960 SmallString<64> Path = StringRef(Arg->getValue()); in link() local
961 sys::path::append(Path, "repro.tar"); in link()
964 TarWriter::create(Path, "repro"); in link()
969 error("/linkrepro: failed to open " + Path + ": " + in link()
1331 if (Optional<StringRef> Path = doFindFile(Arg->getValue())) { in link() local
1332 if (Optional<sys::fs::UniqueID> ID = getUniqueID(*Path)) in link()
1334 Exporter.addWholeArchive(*Path); in link()
1342 auto IsWholeArchive = [&](StringRef Path) -> bool { in link() argument
1345 if (Optional<sys::fs::UniqueID> ID = getUniqueID(Path)) in link()
1353 if (Optional<StringRef> Path = findFile(Arg->getValue())) in link() local
1354 enqueuePath(*Path, IsWholeArchive(*Path)); in link()
1357 if (Optional<StringRef> Path = findLib(Arg->getValue())) in link() local
1358 enqueuePath(*Path, false); in link()