Don't explicitly use the SCC class
authorChris Lattner <sabre@nondot.org>
Sun, 31 Aug 2003 19:55:06 +0000 (19:55 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 31 Aug 2003 19:55:06 +0000 (19:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8271 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/PrintSCC.cpp
lib/Analysis/PrintSCC.cpp
tools/analyze/PrintSCC.cpp
tools/opt/PrintSCC.cpp

index 80f699597db397c138a4b6a78470cd94a55d68a3..0fbc2401888a6783b9aab7ca809f090e344686e1 100644 (file)
@@ -59,7 +59,7 @@ bool CFGSCC::runOnFunction(Function &F) {
   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 @@ bool CallGraphSCC::run(Module &M) {
   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)
index 80f699597db397c138a4b6a78470cd94a55d68a3..0fbc2401888a6783b9aab7ca809f090e344686e1 100644 (file)
@@ -59,7 +59,7 @@ bool CFGSCC::runOnFunction(Function &F) {
   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 @@ bool CallGraphSCC::run(Module &M) {
   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)
index 80f699597db397c138a4b6a78470cd94a55d68a3..0fbc2401888a6783b9aab7ca809f090e344686e1 100644 (file)
@@ -59,7 +59,7 @@ bool CFGSCC::runOnFunction(Function &F) {
   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 @@ bool CallGraphSCC::run(Module &M) {
   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)
index 80f699597db397c138a4b6a78470cd94a55d68a3..0fbc2401888a6783b9aab7ca809f090e344686e1 100644 (file)
@@ -59,7 +59,7 @@ bool CFGSCC::runOnFunction(Function &F) {
   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 @@ bool CallGraphSCC::run(Module &M) {
   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)