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.

llvm-svn: 105730
This commit is contained in:
Duncan Sands 2010-06-09 17:35:00 +00:00
parent a2460bf9e5
commit 516473902b
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ bool CallGraphSCC::runOnModule(Module &M) {
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).";
}