diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-08-09 00:28:56 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-08-09 00:28:56 +0000 |
commit | 5f6ec06f17a844a16d3c08f111d30e9d85759b4b (patch) | |
tree | 9c16b03d75af2d0daec3753f9d098136b89e833f /llvm/lib | |
parent | 0746f3bfa4da3daec4a5817570f8a255bc1c2a30 (diff) | |
download | bcm5719-llvm-5f6ec06f17a844a16d3c08f111d30e9d85759b4b.tar.gz bcm5719-llvm-5f6ec06f17a844a16d3c08f111d30e9d85759b4b.zip |
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
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Passes/PassBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp index 82cc308ef1a..19239ba98ce 100644 --- a/llvm/lib/Passes/PassBuilder.cpp +++ b/llvm/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<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"; } |