summaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/SummaryBasedOptimizations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/LTO/SummaryBasedOptimizations.cpp')
-rw-r--r--llvm/lib/LTO/SummaryBasedOptimizations.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/LTO/SummaryBasedOptimizations.cpp b/llvm/lib/LTO/SummaryBasedOptimizations.cpp
index d4dbefb231e8..9e9d5c84d50d 100644
--- a/llvm/lib/LTO/SummaryBasedOptimizations.cpp
+++ b/llvm/lib/LTO/SummaryBasedOptimizations.cpp
@@ -23,7 +23,9 @@ static cl::opt<bool> ThinLTOSynthesizeEntryCounts(
"thinlto-synthesize-entry-counts", cl::init(false), cl::Hidden,
cl::desc("Synthesize entry counts based on the summary"));
+namespace llvm {
extern cl::opt<int> InitialSyntheticCount;
+}
static void initializeCounts(ModuleSummaryIndex &Index) {
auto Root = Index.calculateCallGraphRoot();