summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2018-02-22 20:57:05 +0000
committerTeresa Johnson <tejohnson@google.com>2018-02-22 20:57:05 +0000
commitfd6fcbc0063876e14cbb52bac2902d570b4e28b2 (patch)
tree13deb9bbbfae57c4e4c76ab065a872418010825c /llvm/test/tools
parenta2cc3c055cb4352f1d0a6c5180f11d6120a2b3a5 (diff)
downloadbcm5719-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/test/tools')
-rw-r--r--llvm/test/tools/gold/X86/cache.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/tools/gold/X86/cache.ll b/llvm/test/tools/gold/X86/cache.ll
index 11c766be20c..51ffee282b1 100644
--- a/llvm/test/tools/gold/X86/cache.ll
+++ b/llvm/test/tools/gold/X86/cache.ll
@@ -8,7 +8,8 @@
; RUN: --plugin-opt=cache-dir=%t.cache \
; RUN: -o %t3.o %t2.o %t.o
-; RUN: ls %t.cache | count 0
+; We should just get the timestamp file
+; RUN: ls %t.cache | count 1
; Verify that enabling caching is working with module with hash.
@@ -22,7 +23,8 @@
; RUN: --plugin-opt=cache-dir=%t.cache \
; RUN: -o %t3.o %t2.o %t.o
-; RUN: ls %t.cache | count 2
+; Two cached objects, plus a timestamp file
+; RUN: ls %t.cache | count 3
; Create two files that would be removed by cache pruning due to age.
OpenPOWER on IntegriCloud