mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-27 13:20:29 +00:00
FunctionPassManager()
Set AnalysisResolver_New and add FPM to PassManagers list. llvm-svn: 32512
This commit is contained in:
parent
e08024130b
commit
b26731c9cd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user