Lines Matching refs:Path
20 void llvm::MachO::replace_extension(SmallVectorImpl<char> &Path,
22 StringRef P(Path.begin(), Path.size());
27 sys::path::replace_extension(Path, Extension);
31 // extension is appended. e.g. given Path: "Foo.framework/Foo" and Extension:
38 Path.push_back('.');
41 Path.append(Ext.begin(), Ext.end());
44 std::error_code llvm::MachO::shouldSkipSymLink(const Twine &Path,
48 auto P = Path.toNullTerminatedStringRef(Storage);
110 bool llvm::MachO::isPrivateLibrary(StringRef Path, bool IsSymLink) {
112 Path.consume_front(MACCATALYST_PREFIX_PATH);
113 Path.consume_front(DRIVERKIT_PREFIX_PATH);
115 Path.consume_front("/Library/Apple");
117 if (Path.starts_with("/usr/local/lib"))
120 if (Path.starts_with("/System/Library/PrivateFrameworks"))
125 if (Path.consume_front("/usr/lib/swift/"))
130 if (Path.consume_front("/usr/lib/"))
131 return Path.contains('/');
134 if (Path.starts_with("/System/Library/Frameworks/")) {
137 Path.drop_front(sizeof("/System/Library/Frameworks")).split('.');
239 for (const auto &[Path, CurrP] : Paths) {
241 Result.push_back(Path);