[PATCH] D31021: ELF: Add cache pruning support.

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 20:14:41 PDT 2017


mehdi_amini added inline comments.


================
Comment at: lld/ELF/LTO.cpp:167
+    pruneCache(Config->ThinLTOCacheDir, Config->ThinLTOCachePolicy);
+
   for (unsigned I = 0; I != MaxTasks; ++I) {
----------------
pcc wrote:
> mehdi_amini wrote:
> > Not interested in adding a `CachePolicy` on the config and having this at the end of the LTO process?
> I thought about doing something like that, but I couldn't see a clean way to do it, as the LTO implementation is supposed to be independent of the type of cache being used.
Fair!


https://reviews.llvm.org/D31021





More information about the llvm-commits mailing list