[PATCH] D21639: CachePruning: correct comment about file order. NFC
Paweł Bylica via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 27 01:53:26 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL273852: CachePruning: correct comment about file order. NFC (authored by chfast).
Changed prior to commit:
http://reviews.llvm.org/D21639?vs=61657&id=61945#toc
Repository:
rL LLVM
http://reviews.llvm.org/D21639
Files:
llvm/trunk/lib/Support/CachePruning.cpp
Index: llvm/trunk/lib/Support/CachePruning.cpp
===================================================================
--- llvm/trunk/lib/Support/CachePruning.cpp
+++ llvm/trunk/lib/Support/CachePruning.cpp
@@ -88,9 +88,9 @@
std::set<std::pair<uint64_t, std::string>> FileSizes;
uint64_t TotalSize = 0;
// Helper to add a path to the set of files to consider for size-based
- // pruning, sorted by last accessed time.
+ // pruning, sorted by size.
auto AddToFileListForSizePruning =
- [&](StringRef Path, sys::TimeValue FileAccessTime) {
+ [&](StringRef Path) {
if (!ShouldComputeSize)
return;
TotalSize += FileStatus.getSize();
@@ -128,7 +128,7 @@
}
// Leave it here for now, but add it to the list of size-based pruning.
- AddToFileListForSizePruning(File->path(), FileAccessTime);
+ AddToFileListForSizePruning(File->path());
}
// Prune for size now if needed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21639.61945.patch
Type: text/x-patch
Size: 938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160627/6b7ab345/attachment.bin>
More information about the llvm-commits
mailing list