[clang] NFCI: Use DirectoryEntryRef in Module::Directory
authorJan Svoboda <jan_svoboda@apple.com>
Thu, 25 May 2023 21:37:20 +0000 (14:37 -0700)
committerJan Svoboda <jan_svoboda@apple.com>
Tue, 30 May 2023 20:54:06 +0000 (13:54 -0700)
commit32d6f3cfd90b90321e84477b2bd353afbf9876ea
tree29cbfb767903f016d068297d5a16309cf8b8a8bb
parentd574e918dba31e670a87c46e7de281819b3c0ea9
[clang] NFCI: Use DirectoryEntryRef in Module::Directory

This patch changes the type of `Module::Directory` from `const DirectoryEntry *` to (essentially) `Optional<DirectoryEntryRef>` in order to remove uses of the deprecated `DirectoryEntry::getName()`.

Depends on D127651.

Reviewed By: bnbarham

Differential Revision: https://reviews.llvm.org/D127654
clang/include/clang/Basic/Module.h
clang/lib/Lex/ModuleMap.cpp