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
This commit is contained in:
Sean Silva 2016-08-09 00:28:56 +00:00
parent 8e46796ab9
commit 2e3c2e8edb

View File

@ -155,7 +155,7 @@ public:
/// \brief No-op CGSCC pass which does nothing.
struct NoOpCGSCCPass {
PreservedAnalyses run(LazyCallGraph::SCC &C,
AnalysisManager<LazyCallGraph::SCC> &) {
CGSCCAnalysisManager &) {
return PreservedAnalyses::all();
}
static StringRef name() { return "NoOpCGSCCPass"; }
@ -168,7 +168,7 @@ class NoOpCGSCCAnalysis : public AnalysisInfoMixin<NoOpCGSCCAnalysis> {
public:
struct Result {};
Result run(LazyCallGraph::SCC &, AnalysisManager<LazyCallGraph::SCC> &) {
Result run(LazyCallGraph::SCC &, CGSCCAnalysisManager &) {
return Result();
}
static StringRef name() { return "NoOpCGSCCAnalysis"; }