[llvm-commits] [llvm] r105730 - /llvm/trunk/tools/opt/PrintSCC.cpp

Duncan Sands baldrick at free.fr
Wed Jun 9 10:35:00 PDT 2010


Author: baldrick
Date: Wed Jun  9 12:35:00 2010
New Revision: 105730

URL: http://llvm.org/viewvc/llvm-project?rev=105730&view=rev
Log:
Output "external node" rather than "Indirect CallGraph node" when printing
callgraph SCC's.  This makes it match what the node itself would print.  Also,
"indirect callgraph node" doesn't make sense - it has nothing particularly to
do with indirect calls.

Modified:
    llvm/trunk/tools/opt/PrintSCC.cpp

Modified: llvm/trunk/tools/opt/PrintSCC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/PrintSCC.cpp?rev=105730&r1=105729&r2=105730&view=diff
==============================================================================
--- llvm/trunk/tools/opt/PrintSCC.cpp (original)
+++ llvm/trunk/tools/opt/PrintSCC.cpp Wed Jun  9 12:35:00 2010
@@ -102,7 +102,7 @@
     for (std::vector<CallGraphNode*>::const_iterator I = nextSCC.begin(),
            E = nextSCC.end(); I != E; ++I)
       outs() << ((*I)->getFunction() ? (*I)->getFunction()->getNameStr()
-                 : std::string("Indirect CallGraph node")) << ", ";
+                 : std::string("external node")) << ", ";
     if (nextSCC.size() == 1 && SCCI.hasLoop())
       outs() << " (Has self-loop).";
   }





More information about the llvm-commits mailing list