[ThinLTO/gold] Perform cache pruning when cache directory specified
authorTeresa Johnson <tejohnson@google.com>
Thu, 22 Feb 2018 20:57:05 +0000 (20:57 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 22 Feb 2018 20:57:05 +0000 (20:57 +0000)
commitfd6fcbc0063876e14cbb52bac2902d570b4e28b2
tree13deb9bbbfae57c4e4c76ab065a872418010825c
parenta2cc3c055cb4352f1d0a6c5180f11d6120a2b3a5
[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
llvm/test/tools/gold/X86/cache.ll
llvm/tools/gold/gold-plugin.cpp