diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-22 21:31:48 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-22 21:31:48 +0000 |
commit | a7dea1671b87c07d2d266f836bfa8b58efc7c134 (patch) | |
tree | ff67344b3b18fc14e0cec322849afb4e3b94ea56 /contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp | |
parent | 5c713029ff7939f90b6f96df914953e758855a7f (diff) | |
parent | 519fc96c475680de2cc49e7811dbbfadb912cbcc (diff) |
Notes
Diffstat (limited to 'contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp b/contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp index e0bf58b67505..d44ef29c05d1 100644 --- a/contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp +++ b/contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp @@ -196,15 +196,15 @@ LLVM_DUMP_METHOD void HeaderMapImpl::dump() const { /// LookupFile - Check to see if the specified relative filename is located in /// this HeaderMap. If so, open it and return its FileEntry. -const FileEntry *HeaderMap::LookupFile( - StringRef Filename, FileManager &FM) const { +Optional<FileEntryRef> HeaderMap::LookupFile(StringRef Filename, + FileManager &FM) const { SmallString<1024> Path; StringRef Dest = HeaderMapImpl::lookupFilename(Filename, Path); if (Dest.empty()) - return nullptr; + return None; - return FM.getFile(Dest); + return FM.getOptionalFileRef(Dest); } StringRef HeaderMapImpl::lookupFilename(StringRef Filename, |