summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-08-21 13:35:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-08-21 13:35:30 +0000
commite07caad9e77020caf015b8a7a9f47224bed3b368 (patch)
treeb7422b8183245e00977a133be7fc6771710f0489 /llvm/lib/LTO
parenta14ef30443ace25fadb6a68d4e13fdfeb481218b (diff)
downloadbcm5719-llvm-e07caad9e77020caf015b8a7a9f47224bed3b368.tar.gz
bcm5719-llvm-e07caad9e77020caf015b8a7a9f47224bed3b368.zip
Handle inlining in populateLTOPassManager like in populateModulePassManager.
No functionality change. llvm-svn: 216178
Diffstat (limited to 'llvm/lib/LTO')
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index 2a195400e3b..1fdc5cf04dd 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -477,7 +477,9 @@ bool LTOCodeGenerator::generateObjectFile(raw_ostream &out,
if (!DisableOpt) {
PassManagerBuilder PMB;
PMB.DisableGVNLoadPRE = DisableGVNLoadPRE;
- PMB.populateLTOPassManager(passes, !DisableInline);
+ if (!DisableInline)
+ PMB.Inliner = createFunctionInliningPass();
+ PMB.populateLTOPassManager(passes);
}
// Make sure everything is still good.
OpenPOWER on IntegriCloud