mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-24 15:12:36 +00:00
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
This commit is contained in:
parent
a4f9d70f9b
commit
2058f10aaa
@ -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"; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user