Author: Kazu Hirata Date: 2025-07-29T08:19:18-07:00 New Revision: 99fda1a09cf7ce97fbd0ea74101e4fc3283f3428
URL: https://github.com/llvm/llvm-project/commit/99fda1a09cf7ce97fbd0ea74101e4fc3283f3428 DIFF: https://github.com/llvm/llvm-project/commit/99fda1a09cf7ce97fbd0ea74101e4fc3283f3428.diff LOG: [Basic] Remove getVirtualFile (#151086) This patch removes getVirtualFile because it has been deprecated for more than 10 months since: commit b1aea98cfa357e23f4bb52232da5f41781f23bff Author: Jan Svoboda <jan_svob...@apple.com> Date: Wed Sep 25 10:36:44 2024 -0700 I'm not aware of any downstream use AFAICT. Added: Modified: clang/include/clang/Basic/FileManager.h clang/lib/Basic/FileManager.cpp Removed: ################################################################################ diff --git a/clang/include/clang/Basic/FileManager.h b/clang/include/clang/Basic/FileManager.h index e83a61d6ff00c..337911e99b303 100644 --- a/clang/include/clang/Basic/FileManager.h +++ b/clang/include/clang/Basic/FileManager.h @@ -237,11 +237,6 @@ class FileManager : public RefCountedBase<FileManager> { FileEntryRef getVirtualFileRef(StringRef Filename, off_t Size, time_t ModificationTime); - LLVM_DEPRECATED("Functions returning FileEntry are deprecated.", - "getVirtualFileRef()") - const FileEntry *getVirtualFile(StringRef Filename, off_t Size, - time_t ModificationTime); - /// Retrieve a FileEntry that bypasses VFE, which is expected to be a virtual /// file entry, to access the real file. The returned FileEntry will have /// the same filename as FE but a diff erent identity and its own stat. diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index fc4ec785d3764..7481e1ee9f7ea 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/lib/Basic/FileManager.cpp @@ -368,11 +368,6 @@ void FileManager::trackVFSUsage(bool Active) { }); } -const FileEntry *FileManager::getVirtualFile(StringRef Filename, off_t Size, - time_t ModificationTime) { - return &getVirtualFileRef(Filename, Size, ModificationTime).getFileEntry(); -} - FileEntryRef FileManager::getVirtualFileRef(StringRef Filename, off_t Size, time_t ModificationTime) { ++NumFileLookups; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits