Pass the callgraph not the module

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-04-20 21:52:26 +00:00
parent 78637fe9d6
commit 72035995d5

View File

@ -30,9 +30,9 @@ void CallGraphSCCPass::getAnalysisUsage(AnalysisUsage &AU) const {
bool CallGraphSCCPass::run(Module &M) {
CallGraph &CG = getAnalysis<CallGraph>();
bool Changed = doInitialization(M);
bool Changed = doInitialization(CG);
for (scc_iterator<CallGraph*> I = scc_begin(&CG), E = scc_end(&CG);
I != E; ++I)
Changed = runOnSCC(*I);
return Changed | doFinalization(M);
return Changed | doFinalization(CG);
}