CallGraphSCCPass manager may require other passes.

Use schedulePass() to accomodate these requirement instead of directly
assigning a manager to new CallGraph PassManager.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2007-06-21 22:29:02 +00:00
parent d3fb671480
commit 25e681ac22

View File

@ -178,7 +178,7 @@ void CallGraphSCCPass::assignPassManager(PMStack &PMS,
// [3] Assign manager to manage this new manager. This may create
// and push new managers into PMS
Pass *P = dynamic_cast<Pass *>(CGP);
P->assignPassManager(PMS);
TPM->schedulePass(P);
// [4] Push new manager into PMS
PMS.push(CGP);