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.
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.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits