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
This commit is contained in:
Devang Patel 2006-12-09 01:11:34 +00:00
parent 5b640e7edc
commit 298feadd7a

View File

@ -675,7 +675,8 @@ void PMDataManager::initializeAnalysisImpl(Pass *P) {
Pass *Impl = findAnalysisPass(*I, true); Pass *Impl = findAnalysisPass(*I, true);
if (Impl == 0) if (Impl == 0)
assert(0 && "Analysis used but not available!"); 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);
} }
} }