From 2e3c2e8edb97116e4d59ef8c895027b59e907fc5 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. llvm-svn: 278080 --- 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 82cc308ef1a..19239ba98ce 100644 --- a/lib/Passes/PassBuilder.cpp +++ b/lib/Passes/PassBuilder.cpp @@ -155,7 +155,7 @@ public: /// \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"; }