summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-03-15 22:54:18 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-03-15 22:54:18 +0000
commitcead56fb22e425f9839f6a83488ff653c7d731c2 (patch)
tree3f154f0fd69462670a9536d5793e51e2c461f100 /llvm/lib/LTO/ThinLTOCodeGenerator.cpp
parenta7d1da833c85b38cc357f566ae3949f8381ce632 (diff)
downloadbcm5719-llvm-cead56fb22e425f9839f6a83488ff653c7d731c2.tar.gz
bcm5719-llvm-cead56fb22e425f9839f6a83488ff653c7d731c2.zip
Support: Simplify the CachePruning API. NFCI.
Change the function that implements the pruning into a free function that takes the policy as a struct argument. Differential Revision: https://reviews.llvm.org/D31009 llvm-svn: 297907
Diffstat (limited to 'llvm/lib/LTO/ThinLTOCodeGenerator.cpp')
-rw-r--r--llvm/lib/LTO/ThinLTOCodeGenerator.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
index 9e3b89bc17c..b793d0c9e3e 100644
--- a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
@@ -1023,11 +1023,7 @@ void ThinLTOCodeGenerator::run() {
}
}
- CachePruning(CacheOptions.Path)
- .setPruningInterval(std::chrono::seconds(CacheOptions.PruningInterval))
- .setEntryExpiration(std::chrono::seconds(CacheOptions.Expiration))
- .setMaxSize(CacheOptions.MaxPercentageOfAvailableSpace)
- .prune();
+ pruneCache(CacheOptions.Path, CacheOptions.Policy);
// If statistics were requested, print them out now.
if (llvm::AreStatisticsEnabled())
OpenPOWER on IntegriCloud