diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp b/contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp index ae5e6b221953..0001fc348eda 100644 --- a/contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp +++ b/contrib/llvm-project/clang/lib/Lex/HeaderMap.cpp @@ -194,19 +194,6 @@ 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. -Optional<FileEntryRef> HeaderMap::LookupFile(StringRef Filename, - FileManager &FM) const { - - SmallString<1024> Path; - StringRef Dest = HeaderMapImpl::lookupFilename(Filename, Path); - if (Dest.empty()) - return None; - - return FM.getOptionalFileRef(Dest); -} - StringRef HeaderMapImpl::lookupFilename(StringRef Filename, SmallVectorImpl<char> &DestPath) const { const HMapHeader &Hdr = getHeader(); |