From 99b1a2ac078fe52300d270b3e77ddbababa8f951 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Thu, 20 Mar 2025 09:38:19 -0700 Subject: [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. --- clang/lib/Basic/FileManager.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'clang/lib/Basic/FileManager.cpp') 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 -FileManager::getDirectory(StringRef DirName, bool CacheFailure) { - auto Result = getDirectoryRef(DirName, CacheFailure); - if (Result) - return &Result->getDirEntry(); - return llvm::errorToErrorCode(Result.takeError()); -} - -llvm::ErrorOr -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 FileManager::getFileRef(StringRef Filename, bool openFile, bool CacheFailure, -- cgit v1.1