diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-20 21:52:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-20 21:52:26 +0000 |
commit | 99504890b76878a5f8965029622a80436c32e4f5 (patch) | |
tree | cd2afe6d76810f8713ce5067702b32ccb19d9111 /llvm | |
parent | a45086a45e2d5f0152f4c71b324e87151a600f19 (diff) | |
download | bcm5719-llvm-99504890b76878a5f8965029622a80436c32e4f5.tar.gz bcm5719-llvm-99504890b76878a5f8965029622a80436c32e4f5.zip |
Pass the callgraph not the module
llvm-svn: 13087
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp index 23aedb0731f..f4e2efbe1c1 100644 --- a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -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); } |