diff options
Diffstat (limited to 'llvm/lib/LTO/LTOCodeGenerator.cpp')
| -rw-r--r-- | llvm/lib/LTO/LTOCodeGenerator.cpp | 4 |
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. |

