diff options
Diffstat (limited to 'contrib/llvm-project/clang/include/clang/Lex/ModuleMap.h')
-rw-r--r-- | contrib/llvm-project/clang/include/clang/Lex/ModuleMap.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/contrib/llvm-project/clang/include/clang/Lex/ModuleMap.h b/contrib/llvm-project/clang/include/clang/Lex/ModuleMap.h index 5b164039080b..6827408f10a3 100644 --- a/contrib/llvm-project/clang/include/clang/Lex/ModuleMap.h +++ b/contrib/llvm-project/clang/include/clang/Lex/ModuleMap.h @@ -14,6 +14,7 @@ #ifndef LLVM_CLANG_LEX_MODULEMAP_H #define LLVM_CLANG_LEX_MODULEMAP_H +#include "clang/Basic/FileEntry.h" #include "clang/Basic/IdentifierTable.h" #include "clang/Basic/LangOptions.h" #include "clang/Basic/Module.h" @@ -37,7 +38,6 @@ namespace clang { class DiagnosticsEngine; class DirectoryEntry; -class FileEntry; class FileManager; class HeaderSearch; class SourceManager; @@ -328,10 +328,9 @@ private: /// \param NeedsFramework If M is not a framework but a missing header would /// be found in case M was, set it to true. False otherwise. /// \return The resolved file, if any. - const FileEntry *findHeader(Module *M, - const Module::UnresolvedHeaderDirective &Header, - SmallVectorImpl<char> &RelativePathName, - bool &NeedsFramework); + Optional<FileEntryRef> + findHeader(Module *M, const Module::UnresolvedHeaderDirective &Header, + SmallVectorImpl<char> &RelativePathName, bool &NeedsFramework); /// Resolve the given header directive. /// @@ -649,12 +648,12 @@ public: /// Sets the umbrella header of the given module to the given /// header. - void setUmbrellaHeader(Module *Mod, const FileEntry *UmbrellaHeader, + void setUmbrellaHeader(Module *Mod, FileEntryRef UmbrellaHeader, Twine NameAsWritten); /// Sets the umbrella directory of the given module to the given /// directory. - void setUmbrellaDir(Module *Mod, const DirectoryEntry *UmbrellaDir, + void setUmbrellaDir(Module *Mod, DirectoryEntryRef UmbrellaDir, Twine NameAsWritten); /// Adds this header to the given module. |