diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-05-25 14:37:20 -0700 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-05-30 13:54:06 -0700 |
commit | 32d6f3cfd90b90321e84477b2bd353afbf9876ea (patch) | |
tree | 29cbfb767903f016d068297d5a16309cf8b8a8bb /clang/lib/Lex/ModuleMap.cpp | |
parent | d574e918dba31e670a87c46e7de281819b3c0ea9 (diff) | |
download | llvm-32d6f3cfd90b90321e84477b2bd353afbf9876ea.zip llvm-32d6f3cfd90b90321e84477b2bd353afbf9876ea.tar.gz llvm-32d6f3cfd90b90321e84477b2bd353afbf9876ea.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 833287c..6808fdf 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -181,7 +181,7 @@ OptionalFileEntryRef ModuleMap::findHeader( Module *M, const Module::UnresolvedHeaderDirective &Header, SmallVectorImpl<char> &RelativePathName, bool &NeedsFramework) { // Search for the header file within the module's home directory. - auto *Directory = M->Directory; + auto Directory = M->Directory; SmallString<128> FullPathName(Directory->getName()); auto GetFile = [&](StringRef Filename) -> OptionalFileEntryRef { |