aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2025-03-20 09:38:19 -0700
committerGitHub <noreply@github.com>2025-03-20 09:38:19 -0700
commit99b1a2ac078fe52300d270b3e77ddbababa8f951 (patch)
treefd3cfd5b86938a5127300f4e1baba2d779a50768 /clang/lib/Basic/FileManager.cpp
parent15ad84fffd76e845ce48f7cb8a917eb6532b93c9 (diff)
downloadllvm-99b1a2ac078fe52300d270b3e77ddbababa8f951.zip
llvm-99b1a2ac078fe52300d270b3e77ddbababa8f951.tar.gz
llvm-99b1a2ac078fe52300d270b3e77ddbababa8f951.tar.bz2
[clang] Remove deprecated `FileManager` APIs (#132063)
This PR removes the `FileManager` APIs that have been deprecated for a while. LLVM 20.1.0 that was released earlier this month contains the formal deprecation of these APIs, so these should be fine to remove in the next major release.
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
-rw-r--r--clang/lib/Basic/FileManager.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp
index f0b6f7b..ec84aad 100644
--- a/clang/lib/Basic/FileManager.cpp
+++ b/clang/lib/Basic/FileManager.cpp
@@ -196,22 +196,6 @@ FileManager::getDirectoryRef(StringRef DirName, bool CacheFailure) {
return DirectoryEntryRef(NamedDirEnt);
}
-llvm::ErrorOr<const DirectoryEntry *>
-FileManager::getDirectory(StringRef DirName, bool CacheFailure) {
- auto Result = getDirectoryRef(DirName, CacheFailure);
- if (Result)
- return &Result->getDirEntry();
- return llvm::errorToErrorCode(Result.takeError());
-}
-
-llvm::ErrorOr<const FileEntry *>
-FileManager::getFile(StringRef Filename, bool openFile, bool CacheFailure) {
- auto Result = getFileRef(Filename, openFile, CacheFailure);
- if (Result)
- return &Result->getFileEntry();
- return llvm::errorToErrorCode(Result.takeError());
-}
-
llvm::Expected<FileEntryRef> FileManager::getFileRef(StringRef Filename,
bool openFile,
bool CacheFailure,