CachePruning: Allow limiting the number of files in the cache directory.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 22 Nov 2017 18:27:31 +0000 (18:27 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 22 Nov 2017 18:27:31 +0000 (18:27 +0000)
commit048ac83973f08e19ec8fc5a8597ad3d283b6e7ad
treefc0291ed6ca4889deea00ae1c8f4fb2aef487562
parent6ca1dd6fa3e6f8c6517a716cf3703e3a524320d4
CachePruning: Allow limiting the number of files in the cache directory.

The default limit is 1000000 but it can be configured with a cache
policy. The motivation is that some filesystems (notably ext4) have
a limit on the number of files that can be contained in a directory
(separate from the inode limit).

Differential Revision: https://reviews.llvm.org/D40327

llvm-svn: 318857
clang/docs/ThinLTO.rst
lld/test/ELF/lto/cache.ll
llvm/include/llvm/Support/CachePruning.h
llvm/lib/Support/CachePruning.cpp