diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-09 08:43:26 -0700 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-09 09:12:35 -0700 |
commit | c23d65b90fb7fb07cb12e2d70d0c34376b8fcdad (patch) | |
tree | 90c72fed3b88a1a1f8fb14463899c6526567f7cf /clang/lib/Lex/ModuleMap.cpp | |
parent | ef996175a7d38f7b4a0b60264dc861ab36376a47 (diff) | |
download | llvm-c23d65b90fb7fb07cb12e2d70d0c34376b8fcdad.zip llvm-c23d65b90fb7fb07cb12e2d70d0c34376b8fcdad.tar.gz llvm-c23d65b90fb7fb07cb12e2d70d0c34376b8fcdad.tar.bz2 |
[clang] NFCI: Use `FileEntryRef` in `ModuleMapParser`
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index f8b767e..7a759a2 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -1490,7 +1490,7 @@ namespace clang { ModuleMap ⤅ /// The current module map file. - const FileEntry *ModuleMapFile; + FileEntryRef ModuleMapFile; /// Source location of most recent parsed module declaration SourceLocation CurrModuleDeclLoc; @@ -1562,7 +1562,7 @@ namespace clang { public: explicit ModuleMapParser(Lexer &L, SourceManager &SourceMgr, const TargetInfo *Target, DiagnosticsEngine &Diags, - ModuleMap &Map, const FileEntry *ModuleMapFile, + ModuleMap &Map, FileEntryRef ModuleMapFile, DirectoryEntryRef Directory, bool IsSystem) : L(L), SourceMgr(SourceMgr), Target(Target), Diags(Diags), Map(Map), ModuleMapFile(ModuleMapFile), Directory(Directory), @@ -2095,7 +2095,7 @@ void ModuleMapParser::parseModuleDecl() { ActiveModule->NoUndeclaredIncludes = true; ActiveModule->Directory = Directory; - StringRef MapFileName(ModuleMapFile->getName()); + StringRef MapFileName(ModuleMapFile.getName()); if (MapFileName.endswith("module.private.modulemap") || MapFileName.endswith("module_private.map")) { ActiveModule->ModuleMapIsPrivate = true; @@ -3077,7 +3077,7 @@ bool ModuleMapParser::parseModuleMapFile() { } while (true); } -bool ModuleMap::parseModuleMapFile(const FileEntry *File, bool IsSystem, +bool ModuleMap::parseModuleMapFile(FileEntryRef File, bool IsSystem, DirectoryEntryRef Dir, FileID ID, unsigned *Offset, SourceLocation ExternModuleLoc) { |