[PATCH] D91555: [Support] Allow customizing the cache pruning prefix

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 11:30:18 PST 2020


phosek added a comment.

In D91555#2397902 <https://reviews.llvm.org/D91555#2397902>, @pcc wrote:

> What is the use case?

We would like to use the cache pruning in one of our downstream tools but we would like to use a custom prefix.



================
Comment at: llvm/include/llvm/Support/CachePruning.h:78
+bool pruneCache(StringRef Path, CachePruningPolicy Policy,
+                Twine Prefix = "llvmcache");
 
----------------
Alternatively, we could also make this a part of `CachePruningPolicy`, I'm not sure if that would be preferable?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91555/new/

https://reviews.llvm.org/D91555



More information about the llvm-commits mailing list