From 298feadd7a547d50eb943c9ea15f6345a024bc9a Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Sat, 9 Dec 2006 01:11:34 +0000 Subject: [PATCH] Analysis resolver now manages AnalysisImpls for the given patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32389 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/PassManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index e085bf57ed0..0200976981e 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -675,7 +675,8 @@ void PMDataManager::initializeAnalysisImpl(Pass *P) { Pass *Impl = findAnalysisPass(*I, true); if (Impl == 0) assert(0 && "Analysis used but not available!"); - // TODO: P->AnalysisImpls.push_back(std::make_pair(*I, Impl)); + AnalysisResolver_New *AR = P->getResolver(); + AR->addAnalysisImplsPair(*I, Impl); } }