From b673b1685761b79647127cfa579a98900ce68eec Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 30 Aug 2016 15:47:13 +0000 Subject: [PATCH] Fixup r279618, instantiate *AnalysisManagerProxy<*AnalysisManager,LazyCallGraph::SCC>, instead of *AnalysisManagerProxy<*AnalysisManager,LazyCallGraph::SCC,LazyCallGraph&>, for PassID. Or they were not instantiated as expected; llvm::InnerAnalysisManagerProxy, llvm::LazyCallGraph::SCC>::PassID llvm::InnerAnalysisManagerProxy, llvm::LazyCallGraph::SCC>::PassID llvm-svn: 280105 --- llvm/include/llvm/Analysis/CGSCCPassManager.h | 8 ++++---- llvm/lib/Analysis/CGSCCPassManager.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/include/llvm/Analysis/CGSCCPassManager.h b/llvm/include/llvm/Analysis/CGSCCPassManager.h index 2d44fa2b643b..e4e88a83f9fc 100644 --- a/llvm/include/llvm/Analysis/CGSCCPassManager.h +++ b/llvm/include/llvm/Analysis/CGSCCPassManager.h @@ -147,8 +147,8 @@ extern template class InnerAnalysisManagerProxy; typedef InnerAnalysisManagerProxy CGSCCAnalysisManagerModuleProxy; -extern template class OuterAnalysisManagerProxy< - ModuleAnalysisManager, LazyCallGraph::SCC, LazyCallGraph &>; +extern template class OuterAnalysisManagerProxy; /// A proxy from a \c ModuleAnalysisManager to an \c SCC. typedef OuterAnalysisManagerProxy @@ -394,8 +394,8 @@ createModuleToPostOrderCGSCCPassAdaptor(CGSCCPassT Pass, bool DebugLogging = fal return ModuleToPostOrderCGSCCPassAdaptor(std::move(Pass), DebugLogging); } -extern template class InnerAnalysisManagerProxy< - FunctionAnalysisManager, LazyCallGraph::SCC, LazyCallGraph &>; +extern template class InnerAnalysisManagerProxy; /// A proxy from a \c FunctionAnalysisManager to an \c SCC. typedef InnerAnalysisManagerProxy diff --git a/llvm/lib/Analysis/CGSCCPassManager.cpp b/llvm/lib/Analysis/CGSCCPassManager.cpp index 097c58ae276d..2b1591cfbcf8 100644 --- a/llvm/lib/Analysis/CGSCCPassManager.cpp +++ b/llvm/lib/Analysis/CGSCCPassManager.cpp @@ -20,9 +20,9 @@ template class PassManager; template class InnerAnalysisManagerProxy; template class OuterAnalysisManagerProxy; + LazyCallGraph::SCC>; template class InnerAnalysisManagerProxy; + LazyCallGraph::SCC>; template class OuterAnalysisManagerProxy; /// Explicitly specialize the pass manager run method to handle call graph