ΒΆbool pruneCache(llvm::StringRef Path,
llvm::CachePruningPolicy Policy)
bool pruneCache(llvm::StringRef Path,
llvm::CachePruningPolicy Policy)
Description
Peform pruning using the supplied policy, returns true if pruning occurred, i.e. if Policy.Interval was expired. As a safeguard against data loss if the user specifies the wrong directory as their cache directory, this function will ignore files not matching the pattern "llvmcache-*".
Declared at: llvm/include/llvm/Support/CachePruning.h:75
Parameters
- llvm::StringRef Path
- llvm::CachePruningPolicy Policy