summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-09-08 16:04:03 +0000
committerDuncan Sands <baldrick@free.fr>2008-09-08 16:04:03 +0000
commita9de91e066151445c04a538a37e27fff07c16eac (patch)
treee0ab3638b908999015e96846be99bdcca0378092
parent24776b554d28a552bd6b4757bff1cf3ac329678b (diff)
downloadbcm5719-llvm-a9de91e066151445c04a538a37e27fff07c16eac.tar.gz
bcm5719-llvm-a9de91e066151445c04a538a37e27fff07c16eac.zip
Didn't mean to commit this change to how the
callgraph is printed. llvm-svn: 55912
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index 99848c83269..062e859e8ce 100644
--- a/llvm/lib/Analysis/IPA/CallGraph.cpp
+++ b/llvm/lib/Analysis/IPA/CallGraph.cpp
@@ -272,15 +272,11 @@ void CallGraphNode::print(std::ostream &OS) const {
else
OS << "Call graph node <<null function: 0x" << this << ">>:\n";
- for (const_iterator I = begin(), E = end(); I != E; ++I) {
+ for (const_iterator I = begin(), E = end(); I != E; ++I)
if (I->second->getFunction())
- OS << " Calls function '" << I->second->getFunction()->getName() << "'";
- else
- OS << " Calls external node";
- if (I->first.getInstruction())
- OS << " from '" << *I->first.getInstruction() << "'";
- OS << "\n";
- }
+ OS << " Calls function '" << I->second->getFunction()->getName() <<"'\n";
+ else
+ OS << " Calls external node\n";
OS << "\n";
}
OpenPOWER on IntegriCloud