Handle inlining in populateLTOPassManager like in populateModulePassManager.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2014-08-21 13:35:30 +00:00
parent 63f5912959
commit 0b994a70b0
5 changed files with 22 additions and 9 deletions

View File

@ -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.