Changes in directory llvm/lib/Analysis/IPA:

CallGraphSCCPass.cpp updated: 1.13 -> 1.14
---
Log message:

Remove dead code. 
CallGraphSCCPass does not need to implement runOnModule().
It supports runOnSCC().


---
Diffs of the changes:  (+0 -9)

 CallGraphSCCPass.cpp |    9 ---------
 1 files changed, 9 deletions(-)


Index: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
diff -u llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.13 
llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.14
--- llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.13     Tue Jan 23 15:55:17 2007
+++ llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp  Thu Jan 25 19:08:18 2007
@@ -189,12 +189,3 @@
   AU.addRequired<CallGraph>();
   AU.addPreserved<CallGraph>();
 }
-
-bool CallGraphSCCPass::runOnModule(Module &M) {
-  CallGraph &CG = getAnalysis<CallGraph>();
-  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(CG);
-}



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to