summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/IPO/InferFunctionAttrs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/IPO/InferFunctionAttrs.h')
-rw-r--r--include/llvm/Transforms/IPO/InferFunctionAttrs.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Transforms/IPO/InferFunctionAttrs.h b/include/llvm/Transforms/IPO/InferFunctionAttrs.h
index 80afc02c62ae8..f5cbf9eb06137 100644
--- a/include/llvm/Transforms/IPO/InferFunctionAttrs.h
+++ b/include/llvm/Transforms/IPO/InferFunctionAttrs.h
@@ -23,10 +23,8 @@ namespace llvm {
/// A pass which infers function attributes from the names and signatures of
/// function declarations in a module.
-class InferFunctionAttrsPass {
-public:
- static StringRef name() { return "InferFunctionAttrsPass"; }
- PreservedAnalyses run(Module &M, AnalysisManager<Module> *AM);
+struct InferFunctionAttrsPass : PassInfoMixin<InferFunctionAttrsPass> {
+ PreservedAnalyses run(Module &M, AnalysisManager<Module> &AM);
};
/// Create a legacy pass manager instance of a pass to infer function