mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user