diff options
author | Alex Lorenz <arphaman@gmail.com> | 2019-08-27 01:03:25 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2019-08-27 01:03:25 +0000 |
commit | 67d25fede9aa7be37b2dcd20e3402f3f190e41f9 (patch) | |
tree | 0169ec81b0d91d5982b84774f7c29f6ab5d12892 /clang/lib/Frontend/DependencyFile.cpp | |
parent | 228ffac6786a8719bfb1d0452f49ee49b0a6fc28 (diff) | |
download | bcm5719-llvm-67d25fede9aa7be37b2dcd20e3402f3f190e41f9.tar.gz bcm5719-llvm-67d25fede9aa7be37b2dcd20e3402f3f190e41f9.zip |
Use FileEntryRef for PPCallbacks::FileSkipped
This fixes the issue where a filename dependendency was missing if the file that
was skipped was included through a symlink in an earlier run, if the file
manager was reused between runs.
llvm-svn: 369998
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r-- | clang/lib/Frontend/DependencyFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp index aeff571c145..86e9ccfe3a4 100644 --- a/clang/lib/Frontend/DependencyFile.cpp +++ b/clang/lib/Frontend/DependencyFile.cpp @@ -59,7 +59,7 @@ struct DepCollectorPPCallbacks : public PPCallbacks { /*IsModuleFile*/false, /*IsMissing*/false); } - void FileSkipped(const FileEntry &SkippedFile, const Token &FilenameTok, + void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, SrcMgr::CharacteristicKind FileType) override { StringRef Filename = llvm::sys::path::remove_leading_dotslash(SkippedFile.getName()); |