diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-09 12:47:12 -0700 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-09 21:51:04 -0700 |
commit | e644f5973b0b71baadc6d7b64596527a1dc49d17 (patch) | |
tree | 8a11bab6970ad1e6074791c09014712ac7e557b5 | |
parent | 14498a477ee9e00dc462779cee8cbc5846ca6d3a (diff) | |
download | llvm-e644f5973b0b71baadc6d7b64596527a1dc49d17.zip llvm-e644f5973b0b71baadc6d7b64596527a1dc49d17.tar.gz llvm-e644f5973b0b71baadc6d7b64596527a1dc49d17.tar.bz2 |
[clang] NFCI: Use `FileEntryRef` in `ModuleMapCallbacks`
-rw-r--r-- | clang/include/clang/Lex/ModuleMap.h | 4 | ||||
-rw-r--r-- | clang/lib/Frontend/DependencyFile.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/Lex/ModuleMap.h b/clang/include/clang/Lex/ModuleMap.h index a25a790e..0da1cdc 100644 --- a/clang/include/clang/Lex/ModuleMap.h +++ b/clang/include/clang/Lex/ModuleMap.h @@ -57,8 +57,8 @@ public: /// contents. /// \param File The file itself. /// \param IsSystem Whether this is a module map from a system include path. - virtual void moduleMapFileRead(SourceLocation FileStart, - const FileEntry &File, bool IsSystem) {} + virtual void moduleMapFileRead(SourceLocation FileStart, FileEntryRef File, + bool IsSystem) {} /// Called when a header is added during module map parsing. /// diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp index 44268e7..1140c09 100644 --- a/clang/lib/Frontend/DependencyFile.cpp +++ b/clang/lib/Frontend/DependencyFile.cpp @@ -105,7 +105,7 @@ struct DepCollectorMMCallbacks : public ModuleMapCallbacks { DependencyCollector &DepCollector; DepCollectorMMCallbacks(DependencyCollector &DC) : DepCollector(DC) {} - void moduleMapFileRead(SourceLocation Loc, const FileEntry &Entry, + void moduleMapFileRead(SourceLocation Loc, FileEntryRef Entry, bool IsSystem) override { StringRef Filename = Entry.getName(); DepCollector.maybeAddDependency(Filename, diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 39af2e8..b4483cd 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -3120,7 +3120,7 @@ bool ModuleMap::parseModuleMapFile(FileEntryRef File, bool IsSystem, // Notify callbacks that we parsed it. for (const auto &Cb : Callbacks) - Cb->moduleMapFileRead(Start, *File, IsSystem); + Cb->moduleMapFileRead(Start, File, IsSystem); return Result; } |