diff options
author | Alex Lorenz <arphaman@gmail.com> | 2019-08-31 01:26:04 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2019-08-31 01:26:04 +0000 |
commit | 0377ca641c9af0262270d091578cab19523b1bc6 (patch) | |
tree | 07dd78901eff6d926370fdd5414576a90fdfd40e /clang/lib/Frontend/InitHeaderSearch.cpp | |
parent | 09490012afde4ef89165f42d143e18a81e7a1054 (diff) | |
download | llvm-0377ca641c9af0262270d091578cab19523b1bc6.zip llvm-0377ca641c9af0262270d091578cab19523b1bc6.tar.gz llvm-0377ca641c9af0262270d091578cab19523b1bc6.tar.bz2 |
Introduce a DirectoryEntryRef that stores both a reference and an
accessed name to the directory entry
This commit introduces a parallel API that returns a DirectoryEntryRef
to the FileManager, similar to the parallel FileEntryRef API. All
uses will have to be update in follow-up patches. The immediate use of the new API in this
patch fixes the issue where a file manager was reused in clang-scan-deps,
but reported an different file path whenever a framework lookup was done through a symlink.
Differential Revision: https://reviews.llvm.org/D67026
llvm-svn: 370562
Diffstat (limited to 'clang/lib/Frontend/InitHeaderSearch.cpp')
-rw-r--r-- | clang/lib/Frontend/InitHeaderSearch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/InitHeaderSearch.cpp b/clang/lib/Frontend/InitHeaderSearch.cpp index a56af5a..ad0d232 100644 --- a/clang/lib/Frontend/InitHeaderSearch.cpp +++ b/clang/lib/Frontend/InitHeaderSearch.cpp @@ -148,7 +148,7 @@ bool InitHeaderSearch::AddUnmappedPath(const Twine &Path, IncludeDirGroup Group, } // If the directory exists, add it. - if (auto DE = FM.getDirectory(MappedPathStr)) { + if (auto DE = FM.getOptionalDirectoryRef(MappedPathStr)) { IncludePath.push_back( std::make_pair(Group, DirectoryLookup(*DE, Type, isFramework))); return true; |