diff options
author | Volodymyr Sapsai <vsapsai@apple.com> | 2019-08-29 19:51:25 +0000 |
---|---|---|
committer | Volodymyr Sapsai <vsapsai@apple.com> | 2019-08-29 19:51:25 +0000 |
commit | 0785f8d0bb70b1485573556d1315784ebd085af3 (patch) | |
tree | 2df32c76fc8bf4f9a0e7675c2ad5649b3693c3ce /clang/lib/Basic/FileManager.cpp | |
parent | 65f1c040007bb767560b08a853d52c470298f56c (diff) | |
download | bcm5719-llvm-0785f8d0bb70b1485573556d1315784ebd085af3.tar.gz bcm5719-llvm-0785f8d0bb70b1485573556d1315784ebd085af3.zip |
Remove `FileManager::invalidateCache` as it has no callers anymore. NFC.
llvm-svn: 370400
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
-rw-r--r-- | clang/lib/Basic/FileManager.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index 8e186713a92..ec9ada2f196 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/lib/Basic/FileManager.cpp @@ -498,20 +498,6 @@ FileManager::getNoncachedStatValue(StringRef Path, return std::error_code(); } -void FileManager::invalidateCache(const FileEntry *Entry) { - assert(Entry && "Cannot invalidate a NULL FileEntry"); - - SeenFileEntries.erase(Entry->getName()); - - // FileEntry invalidation should not block future optimizations in the file - // caches. Possible alternatives are cache truncation (invalidate last N) or - // invalidation of the whole cache. - // - // FIXME: This is broken. We sometimes have the same FileEntry* shared - // between multiple SeenFileEntries, so this can leave dangling pointers. - UniqueRealFiles.erase(Entry->getUniqueID()); -} - void FileManager::GetUniqueIDMapping( SmallVectorImpl<const FileEntry *> &UIDToFiles) const { UIDToFiles.clear(); |