From: Chris Lattner Date: Tue, 20 Apr 2004 21:52:26 +0000 (+0000) Subject: Pass the callgraph not the module X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=72035995d50084676b2f9c1db0869f81f2faccf4;p=oota-llvm.git Pass the callgraph not the module git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13087 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp index 23aedb0731f..f4e2efbe1c1 100644 --- a/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -30,9 +30,9 @@ void CallGraphSCCPass::getAnalysisUsage(AnalysisUsage &AU) const { bool CallGraphSCCPass::run(Module &M) { CallGraph &CG = getAnalysis(); - bool Changed = doInitialization(M); + bool Changed = doInitialization(CG); for (scc_iterator I = scc_begin(&CG), E = scc_end(&CG); I != E; ++I) Changed = runOnSCC(*I); - return Changed | doFinalization(M); + return Changed | doFinalization(CG); }