aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm/Transforms/IPO/Inliner.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/Transforms/IPO/Inliner.h')
-rw-r--r--llvm/include/llvm/Transforms/IPO/Inliner.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/include/llvm/Transforms/IPO/Inliner.h b/llvm/include/llvm/Transforms/IPO/Inliner.h
index 21ff86994ce1..23a39d7f2e2b 100644
--- a/llvm/include/llvm/Transforms/IPO/Inliner.h
+++ b/llvm/include/llvm/Transforms/IPO/Inliner.h
@@ -119,8 +119,7 @@ class ModuleInlinerWrapperPass
: public PassInfoMixin<ModuleInlinerWrapperPass> {
public:
ModuleInlinerWrapperPass(
- InlineParams Params = getInlineParams(), bool Debugging = false,
- bool MandatoryFirst = true,
+ InlineParams Params = getInlineParams(), bool MandatoryFirst = true,
InliningAdvisorMode Mode = InliningAdvisorMode::Default,
unsigned MaxDevirtIterations = 0);
ModuleInlinerWrapperPass(ModuleInlinerWrapperPass &&Arg) = default;
@@ -131,9 +130,9 @@ public:
/// before run is called, as part of pass pipeline building.
CGSCCPassManager &getPM() { return PM; }
- /// Allow adding module-level analyses benefiting the contained CGSCC passes.
- template <class T> void addRequiredModuleAnalysis() {
- MPM.addPass(RequireAnalysisPass<T, Module>());
+ /// Allow adding module-level passes benefiting the contained CGSCC passes.
+ template <class T> void addModulePass(T Pass) {
+ MPM.addPass(std::move(Pass));
}
private: