aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA/CallGraph.cpp
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
commit28f02128ae21f2cb024c97d813faacd6e7bf4410 (patch)
treea90a1a7eeed9f63b24d0a6b48802ebe27655c644 /lib/Analysis/IPA/CallGraph.cpp
parent9f1185076d60153fd35feb3cadb1b4cd8debc0b6 (diff)
Didn't mean to commit this change to how the
callgraph is printed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r--lib/Analysis/IPA/CallGraph.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp
index 99848c8326..062e859e8c 100644
--- a/lib/Analysis/IPA/CallGraph.cpp
+++ b/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";
}