From 2058f10aaab58f2c863f32f7e0fb8a06f3e66621 Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Tue, 9 Aug 2016 00:28:56 +0000 Subject: [PATCH] Consistently use CGSCCAnalysisManager Besides a general consistently benefit, the extra layer of indirection allows the mechanical part of https://reviews.llvm.org/D23256 that requires touching every transformation and analysis to be factored out cleanly. Thanks to David for the suggestion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278080 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Passes/PassBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Passes/PassBuilder.cpp b/lib/Passes/PassBuilder.cpp index 82cc308ef1a4..19239ba98ced 100644 --- a/lib/Passes/PassBuilder.cpp +++ b/lib/Passes/PassBuilder.cpp @@ -155,7 +155,7 @@ class NoOpModuleAnalysis : public AnalysisInfoMixin { /// \brief No-op CGSCC pass which does nothing. struct NoOpCGSCCPass { PreservedAnalyses run(LazyCallGraph::SCC &C, - AnalysisManager &) { + CGSCCAnalysisManager &) { return PreservedAnalyses::all(); } static StringRef name() { return "NoOpCGSCCPass"; } @@ -168,7 +168,7 @@ class NoOpCGSCCAnalysis : public AnalysisInfoMixin { public: struct Result {}; - Result run(LazyCallGraph::SCC &, AnalysisManager &) { + Result run(LazyCallGraph::SCC &, CGSCCAnalysisManager &) { return Result(); } static StringRef name() { return "NoOpCGSCCAnalysis"; }