[clang][lex] NFCI: Use FileEntryRef in ModuleMap::diagnoseHeaderInclusion()
authorJan Svoboda <jan_svoboda@apple.com>
Wed, 20 Apr 2022 17:02:03 +0000 (19:02 +0200)
committerJan Svoboda <jan_svoboda@apple.com>
Wed, 20 Apr 2022 18:27:13 +0000 (20:27 +0200)
commit99cfccdcb371cd6769169538098c3c3539cf9498
tree6bed10226849841eb1ae054d0a04b3a603b6897f
parent8a9b4fb4aa6d2dde026d9ae08459aa9e7a1edb05
[clang][lex] NFCI: Use FileEntryRef in ModuleMap::diagnoseHeaderInclusion()

This patch removes uses of the deprecated `DirectoryEntry::getName()` from the `ModuleMap::diagnoseHeaderInclusion()` function by using `{File,Directory}EntryRef` instead.

Reviewed By: bnbarham

Differential Revision: https://reviews.llvm.org/D123856
clang/include/clang/Lex/ModuleMap.h
clang/lib/Lex/ModuleMap.cpp
clang/lib/Lex/PPDirectives.cpp