summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-lto/llvm-lto.cpp
diff options
context:
space:
mode:
authorEkaterina Romanova <katya_romanova@playstation.sony.com>2018-02-15 23:29:21 +0000
committerEkaterina Romanova <katya_romanova@playstation.sony.com>2018-02-15 23:29:21 +0000
commitd345f7393914cb4a57b079836f0723002a06cc71 (patch)
tree5e534bb4c129bd2e7d63059a46e53f818151167d /llvm/tools/llvm-lto/llvm-lto.cpp
parent17daedfd04bbcac5cb38dbc2adcfd467441865cc (diff)
downloadbcm5719-llvm-d345f7393914cb4a57b079836f0723002a06cc71.tar.gz
bcm5719-llvm-d345f7393914cb4a57b079836f0723002a06cc71.zip
Allow 0 to be a valid value pruning interval in C LTO API. Value 0 will cause garbage collector to run. This matches the behavior in C++ LTO API.
llvm-svn: 325303
Diffstat (limited to 'llvm/tools/llvm-lto/llvm-lto.cpp')
-rw-r--r--llvm/tools/llvm-lto/llvm-lto.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp
index e7788f656cd..9e5458f4ad9 100644
--- a/llvm/tools/llvm-lto/llvm-lto.cpp
+++ b/llvm/tools/llvm-lto/llvm-lto.cpp
@@ -157,7 +157,8 @@ static cl::opt<std::string>
ThinLTOCacheDir("thinlto-cache-dir", cl::desc("Enable ThinLTO caching."));
static cl::opt<int>
- ThinLTOCachePruningInterval("thinlto-cache-pruning-interval", cl::desc("Set ThinLTO cache pruning interval."));
+ ThinLTOCachePruningInterval("thinlto-cache-pruning-interval",
+ cl::init(1200), cl::desc("Set ThinLTO cache pruning interval."));
static cl::opt<std::string> ThinLTOSaveTempsPrefix(
"thinlto-save-temps",
OpenPOWER on IntegriCloud