diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 44df9d535ec..71abb2bff39 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -970,7 +970,10 @@ void CodeGen::runLTOPasses() { PMB.SLPVectorize = true; PMB.OptLevel = options::OptLevel; PMB.ModuleSummary = CombinedIndex; - PMB.populateLTOPassManager(passes); + if (options::thinlto) + PMB.populateThinLTOPassManager(passes); + else + PMB.populateLTOPassManager(passes); passes.run(*M); } |