[clang] 0038d6c - [clang] NFCI: Use `DirectoryEntryRef` in framework lookup
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Wed May 31 16:04:57 PDT 2023
Author: Jan Svoboda
Date: 2023-05-31T16:04:46-07:00
New Revision: 0038d6c7fe75a9f45076a347e4fd9b1f59051899
URL: https://github.com/llvm/llvm-project/commit/0038d6c7fe75a9f45076a347e4fd9b1f59051899
DIFF: https://github.com/llvm/llvm-project/commit/0038d6c7fe75a9f45076a347e4fd9b1f59051899.diff
LOG: [clang] NFCI: Use `DirectoryEntryRef` in framework lookup
This removes one use of the deprecated `DirectoryEntry::getName()`.
Added:
Modified:
clang/lib/Lex/HeaderSearch.cpp
Removed:
################################################################################
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp
index 7e8f93ab172a..db7e531ed313 100644
--- a/clang/lib/Lex/HeaderSearch.cpp
+++ b/clang/lib/Lex/HeaderSearch.cpp
@@ -690,7 +690,7 @@ OptionalFileEntryRef DirectoryLookup::DoFrameworkLookup(
// If we found the header and are allowed to suggest a module, do so now.
if (File && needModuleLookup(RequestingModule, SuggestedModule)) {
// Find the framework in which this header occurs.
- StringRef FrameworkPath = File->getFileEntry().getDir()->getName();
+ StringRef FrameworkPath = File->getDir().getName();
bool FoundFramework = false;
do {
// Determine whether this directory exists.
More information about the cfe-commits
mailing list