mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01: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. llvm-svn: 278080
This commit is contained in:
parent
8e46796ab9
commit
2e3c2e8edb
@ -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…
Reference in New Issue
Block a user