[PATCH] D50870: Close FileEntries of cached files in ModuleManager::addModule().
Bruno Cardoso Lopes via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 17 18:16:46 PDT 2018
bruno accepted this revision.
bruno added a comment.
This revision is now accepted and ready to land.
Thanks for working on this Adrian, LGTM.
> When we last discussed this my plan was to avoid the stat() in lookupModuleFile() for files that were just added to the PCMCache by WriteAST() entirely, but ModuleManager::Modules is a DenseMap<FileEntry, ModuleFile *> and lookupModuleFile() is the easiest way to create a new FileEntry. It would be nice to find a way to avoid the stat() for a file that we just wrote, but it wasn't immediately obvious to me how to do that.
Makes sense, I don't know offhand either. It's an extra optimization step we want to do, but it shouldn't block this change.
Repository:
rL LLVM
https://reviews.llvm.org/D50870
More information about the cfe-commits
mailing list