[llvm-commits] [llvm] r55912 - /llvm/trunk/lib/Analysis/IPA/CallGraph.cpp
Duncan Sands
baldrick at free.fr
Mon Sep 8 09:04:03 PDT 2008
Author: baldrick
Date: Mon Sep 8 11:04:03 2008
New Revision: 55912
URL: http://llvm.org/viewvc/llvm-project?rev=55912&view=rev
Log:
Didn't mean to commit this change to how the
callgraph is printed.
Modified:
llvm/trunk/lib/Analysis/IPA/CallGraph.cpp
Modified: llvm/trunk/lib/Analysis/IPA/CallGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IPA/CallGraph.cpp?rev=55912&r1=55911&r2=55912&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IPA/CallGraph.cpp (original)
+++ llvm/trunk/lib/Analysis/IPA/CallGraph.cpp Mon Sep 8 11:04:03 2008
@@ -272,15 +272,11 @@
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";
}
More information about the llvm-commits
mailing list