diff options
Diffstat (limited to 'include/llvm/Transforms/IPO/ForceFunctionAttrs.h')
-rw-r--r-- | include/llvm/Transforms/IPO/ForceFunctionAttrs.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Transforms/IPO/ForceFunctionAttrs.h b/include/llvm/Transforms/IPO/ForceFunctionAttrs.h index 0ff4afe79b0cc..ff8a6546f0591 100644 --- a/include/llvm/Transforms/IPO/ForceFunctionAttrs.h +++ b/include/llvm/Transforms/IPO/ForceFunctionAttrs.h @@ -21,10 +21,8 @@ namespace llvm { /// Pass which forces specific function attributes into the IR, primarily as /// a debugging tool. -class ForceFunctionAttrsPass { -public: - static StringRef name() { return "ForceFunctionAttrsPass"; } - PreservedAnalyses run(Module &M); +struct ForceFunctionAttrsPass : PassInfoMixin<ForceFunctionAttrsPass> { + PreservedAnalyses run(Module &M, ModuleAnalysisManager &); }; /// Create a legacy pass manager instance of a pass to force function attrs. |