Skip to content

Commit

Permalink
Consistently use CGSCCAnalysisManager
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chisophugis committed Aug 9, 2016
1 parent a4f9d70 commit 2058f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Passes/PassBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class NoOpModuleAnalysis : public AnalysisInfoMixin<NoOpModuleAnalysis> {
/// \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"; }
Expand All @@ -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"; }
Expand Down

0 comments on commit 2058f10

Please sign in to comment.