[clang] [llvm] [clang][DependencyScanner] Remove unused -ivfsoverlay files (PR #73734)

Juergen Ributzka via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 08:57:40 PST 2023


================
@@ -142,6 +142,21 @@ std::vector<bool> HeaderSearch::computeUserEntryUsage() const {
   return UserEntryUsage;
 }
 
+std::vector<bool> HeaderSearch::computeVFSUsage() const {
+  std::vector<bool> VFSUsage;
+  llvm::vfs::FileSystem &RootFS = FileMgr.getVirtualFileSystem();
+  // TODO: This only works if the `RedirectingFileSystem`s were all created by
----------------
ributzka wrote:

Could all VFS created via `createVFSFromOverlayFiles` be marked with a flag and then assert here if the bit is not set? Or does it not matter and we only use the optimization potential?

https://github.com/llvm/llvm-project/pull/73734


More information about the cfe-commits mailing list