[PATCH] D31096: LTO, Support: Add a safeguard against pruning a directory that is not a cache directory.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 17 13:00:22 PDT 2017
pcc created this revision.
Use the presence of the llvmcache.timestamp file to mark a directory as a
cache directory. Only prune the cache if the file exists. The idea is to
protect against data loss if the user supplies an incorrect cache directory.
https://reviews.llvm.org/D31096
Files:
lld/test/ELF/lto/cache.ll
llvm/include/llvm/Support/CachePruning.h
llvm/lib/LTO/Caching.cpp
llvm/lib/LTO/ThinLTOCodeGenerator.cpp
llvm/lib/Support/CachePruning.cpp
llvm/lib/Support/Path.cpp
llvm/test/ThinLTO/X86/cache-config.ll
llvm/test/ThinLTO/X86/cache-import-lists.ll
llvm/test/ThinLTO/X86/cache-typeid-resolutions.ll
llvm/test/ThinLTO/X86/cache.ll
llvm/test/ThinLTO/X86/empty_module_with_cache.ll
llvm/test/tools/gold/X86/cache.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31096.92185.patch
Type: text/x-patch
Size: 14352 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170317/ad99884e/attachment.bin>
More information about the llvm-commits
mailing list