diff options
author | Teresa Johnson <tejohnson@google.com> | 2018-02-22 20:57:05 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2018-02-22 20:57:05 +0000 |
commit | fd6fcbc0063876e14cbb52bac2902d570b4e28b2 (patch) | |
tree | 13deb9bbbfae57c4e4c76ab065a872418010825c /llvm/tools/gold/gold-plugin.cpp | |
parent | a2cc3c055cb4352f1d0a6c5180f11d6120a2b3a5 (diff) | |
download | bcm5719-llvm-fd6fcbc0063876e14cbb52bac2902d570b4e28b2.tar.gz bcm5719-llvm-fd6fcbc0063876e14cbb52bac2902d570b4e28b2.zip |
[ThinLTO/gold] Perform cache pruning when cache directory specified
Summary:
As pointed out in the review for D37993, for consistency with other
linkers, gold plugin should perform cache pruning whenever there is a
cache directory specified, which will use the default cache policy.
Reviewers: pcc
Subscribers: llvm-commits, inglorion
Differential Revision: https://reviews.llvm.org/D43389
llvm-svn: 325830
Diffstat (limited to 'llvm/tools/gold/gold-plugin.cpp')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index a28cf325685..19804a1ff12 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -1014,7 +1014,7 @@ static ld_plugin_status cleanup_hook(void) { } // Prune cache - if (!options::cache_policy.empty()) { + if (!options::cache_dir.empty()) { CachePruningPolicy policy = check(parseCachePruningPolicy(options::cache_policy)); pruneCache(options::cache_dir, policy); } |