[PATCH] D153481: [clang] NFCI: Use `DirectoryEntryRef` in framework lookup

Fernando Salas via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 21 16:17:20 PDT 2023


frs513 created this revision.
Herald added a project: All.
frs513 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This removes one use of the deprecated `DirectoryEntry::getName()`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153481

Files:
  clang/lib/Lex/HeaderSearch.cpp


Index: clang/lib/Lex/HeaderSearch.cpp
===================================================================
--- clang/lib/Lex/HeaderSearch.cpp
+++ clang/lib/Lex/HeaderSearch.cpp
@@ -690,7 +690,7 @@
   // 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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153481.533429.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230621/4b14f935/attachment.bin>


More information about the cfe-commits mailing list