[llvm-commits] CVS: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 20 16:53:02 PDT 2004


Changes in directory llvm/lib/Analysis/IPA:

CallGraphSCCPass.cpp updated: 1.6 -> 1.7

---
Log message:

Pass the callgraph not the module


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
diff -u llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.6 llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.7
--- llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.6	Tue Apr 20 16:30:06 2004
+++ llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp	Tue Apr 20 16:52:26 2004
@@ -30,9 +30,9 @@
 
 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);
 }





More information about the llvm-commits mailing list