|
@@ -498,20 +498,6 @@ FileManager::getNoncachedStatValue(StringRef Path,
|
|
return std::error_code();
|
|
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(
|
|
void FileManager::GetUniqueIDMapping(
|
|
SmallVectorImpl<const FileEntry *> &UIDToFiles) const {
|
|
SmallVectorImpl<const FileEntry *> &UIDToFiles) const {
|
|
UIDToFiles.clear();
|
|
UIDToFiles.clear();
|