diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-09 17:56:50 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-09 17:56:50 +0000 |
commit | 0938f7424261cb99abaac4e5325487886e213dfb (patch) | |
tree | d631b6f6a3360dcdc501a2a89f6cc76b2d40c6de /lib/VMCore/PassManager.cpp | |
parent | acd12fc3a41ed71a9c72057d8f2689ac066bf35d (diff) | |
download | external_llvm-0938f7424261cb99abaac4e5325487886e213dfb.zip external_llvm-0938f7424261cb99abaac4e5325487886e213dfb.tar.gz external_llvm-0938f7424261cb99abaac4e5325487886e213dfb.tar.bz2 |
Simplify.
Fix outdated comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PassManager.cpp')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 42b33ff..20fc68c 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -1590,7 +1590,7 @@ void ModulePass::assignPassManager(PMStack &PMS, void FunctionPass::assignPassManager(PMStack &PMS, PassManagerType PreferredType) { - // Find Module Pass Manager (TODO : Or Call Graph Pass Manager) + // Find Module Pass Manager while(!PMS.empty()) { if (PMS.top()->getPassManagerType() > PMT_FunctionPassManager) PMS.pop(); @@ -1614,13 +1614,7 @@ void FunctionPass::assignPassManager(PMStack &PMS, // [3] Assign manager to manage this new manager. This may create // and push new managers into PMS - - // If Call Graph Pass Manager is active then use it to manage - // this new Function Pass manager. - if (PMD->getPassManagerType() == PMT_CallGraphPassManager) - FPP->assignPassManager(PMS, PMT_CallGraphPassManager); - else - FPP->assignPassManager(PMS); + FPP->assignPassManager(PMS, PMD->getPassManagerType()); // [4] Push new manager into PMS PMS.push(FPP); |