[llvm-commits] CVS: llvm/lib/Analysis/PrintSCC.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 31 14:56:08 PDT 2003
Changes in directory llvm/lib/Analysis:
PrintSCC.cpp updated: 1.5 -> 1.6
---
Log message:
Don't explicitly use the SCC class
---
Diffs of the changes:
Index: llvm/lib/Analysis/PrintSCC.cpp
diff -u llvm/lib/Analysis/PrintSCC.cpp:1.5 llvm/lib/Analysis/PrintSCC.cpp:1.6
--- llvm/lib/Analysis/PrintSCC.cpp:1.5 Sun Aug 31 14:51:36 2003
+++ llvm/lib/Analysis/PrintSCC.cpp Sun Aug 31 14:55:06 2003
@@ -59,7 +59,7 @@
std::cout << "SCCs for Function " << F.getName() << " in PostOrder:";
for (TarjanSCC_iterator<Function*> SCCI = tarj_begin(&F),
E = tarj_end(&F); SCCI != E; ++SCCI) {
- SCC<Function*> &nextSCC = *SCCI;
+ std::vector<BasicBlock*> &nextSCC = *SCCI;
std::cout << "\nSCC #" << ++sccNum << " : ";
for (std::vector<BasicBlock*>::const_iterator I = nextSCC.begin(),
E = nextSCC.end(); I != E; ++I)
@@ -80,7 +80,7 @@
std::cout << "SCCs for the program in PostOrder:";
for (TarjanSCC_iterator<CallGraphNode*> SCCI = tarj_begin(rootNode),
E = tarj_end(rootNode); SCCI != E; ++SCCI) {
- const SCC<CallGraphNode*> &nextSCC = *SCCI;
+ const std::vector<CallGraphNode*> &nextSCC = *SCCI;
std::cout << "\nSCC #" << ++sccNum << " : ";
for (std::vector<CallGraphNode*>::const_iterator I = nextSCC.begin(),
E = nextSCC.end(); I != E; ++I)
More information about the llvm-commits
mailing list