diff options
Diffstat (limited to 'include/llvm/Transforms/Scalar/SimplifyCFG.h')
-rw-r--r-- | include/llvm/Transforms/Scalar/SimplifyCFG.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Transforms/Scalar/SimplifyCFG.h b/include/llvm/Transforms/Scalar/SimplifyCFG.h index ef28e0f78a4c1..53f427a7d19ac 100644 --- a/include/llvm/Transforms/Scalar/SimplifyCFG.h +++ b/include/llvm/Transforms/Scalar/SimplifyCFG.h @@ -25,12 +25,10 @@ namespace llvm { /// This pass iteratively simplifies the entire CFG of a function, removing /// unnecessary control flows and bringing it into the canonical form expected /// by the rest of the mid-level optimizer. -class SimplifyCFGPass { +class SimplifyCFGPass : public PassInfoMixin<SimplifyCFGPass> { int BonusInstThreshold; public: - static StringRef name() { return "SimplifyCFGPass"; } - /// \brief Construct a pass with the default thresholds. SimplifyCFGPass(); @@ -38,7 +36,7 @@ public: SimplifyCFGPass(int BonusInstThreshold); /// \brief Run the pass over the function. - PreservedAnalyses run(Function &F, AnalysisManager<Function> *AM); + PreservedAnalyses run(Function &F, AnalysisManager<Function> &AM); }; } |