FunctionPassManager()

Set AnalysisResolver_New and add FPM to PassManagers list.

llvm-svn: 32512
This commit is contained in:
Devang Patel 2006-12-12 23:27:37 +00:00
parent e08024130b
commit b26731c9cd

View File

@ -847,6 +847,12 @@ FunctionPassManager_New::FunctionPassManager_New(ModuleProvider *P) {
FPM = new FunctionPassManagerImpl_New(0);
// FPM is the top level manager.
FPM->setTopLevelManager(FPM);
PMDataManager *PMD = dynamic_cast<PMDataManager *>(FPM);
AnalysisResolver_New *AR = new AnalysisResolver_New(*PMD);
FPM->setResolver(AR);
FPM->addPassManager(FPM);
MP = P;
}