diff options
Diffstat (limited to 'gnu/llvm/include/llvm/Transforms/IPO/InferFunctionAttrs.h')
| -rw-r--r-- | gnu/llvm/include/llvm/Transforms/IPO/InferFunctionAttrs.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gnu/llvm/include/llvm/Transforms/IPO/InferFunctionAttrs.h b/gnu/llvm/include/llvm/Transforms/IPO/InferFunctionAttrs.h index 80afc02c62a..f5cbf9eb061 100644 --- a/gnu/llvm/include/llvm/Transforms/IPO/InferFunctionAttrs.h +++ b/gnu/llvm/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 |
