Lines Matching +defs:source +defs:path

55 // Returns the last element of a path, which is supposed to be a filename.
56 static StringRef getBasename(StringRef path) {
57 return sys::path::filename(path, sys::path::Style::windows);
76 Symbol *source, Symbol *target) {
77 if (auto *u = dyn_cast<Undefined>(source)) {
86 ctx.symtab.reportDuplicate(source, f);
860 // The casing of the PDB path stamped in the OBJ can differ from the actual path
863 static std::string normalizePdbPath(StringRef path) {
865 return path.lower();
867 return std::string(path);
871 // If existing, return the actual PDB path on disk.
874 // Ensure the file exists before anything else. In some cases, if the path
887 StringRef pdbName = sys::path::filename(pdbPath, sys::path::Style::windows);
890 SmallString<128> path;
891 sys::path::append(path, sys::path::parent_path(objPath), pdbName);
892 if (llvm::sys::fs::exists(path))
893 return normalizePdbPath(path);
896 path.clear();
897 sys::path::append(path, sys::path::parent_path(outputPath), pdbName);
898 if (llvm::sys::fs::exists(path))
899 return normalizePdbPath(path);
910 StringRef path,
912 auto p = findPdbPath(path.str(), fromFile, ctx.config.outputFile);
977 void ObjFile::enqueuePdbFile(StringRef path, ObjFile *fromFile) {
978 auto p = findPdbPath(path.str(), fromFile, ctx.config.outputFile);
1049 std::string path = mb.getBufferIdentifier().str();
1051 path = replaceThinLTOSuffix(mb.getBufferIdentifier(),
1063 ? path
1065 sys::path::filename(path) +
1158 std::string lld::coff::replaceThinLTOSuffix(StringRef path, StringRef suffix,
1160 if (path.consume_back(suffix))
1161 return (path + repl).str();
1162 return std::string(path);