summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/CallGraph.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-14 19:17:02 +0000
committerChris Lattner <sabre@nondot.org>2006-01-14 19:17:02 +0000
commitbc351e171fcdaa34d64d10bb2a777cdf11554e72 (patch)
treece4993ead6a9fcd6f25eb58fb7118fb9c3b60f66 /llvm/lib/Analysis/IPA/CallGraph.cpp
parent542c3c17a9efb0ca75ffc90666eca6cbe058271b (diff)
downloadbcm5719-llvm-bc351e171fcdaa34d64d10bb2a777cdf11554e72.tar.gz
bcm5719-llvm-bc351e171fcdaa34d64d10bb2a777cdf11554e72.zip
add a dump method to CallGraph
llvm-svn: 25314
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index 03f73fa8d20..29b8ed4a7f0 100644
--- a/llvm/lib/Analysis/IPA/CallGraph.cpp
+++ b/llvm/lib/Analysis/IPA/CallGraph.cpp
@@ -216,6 +216,10 @@ void CallGraph::print(std::ostream &OS, const Module *M) const {
I->second->print(OS);
}
+void CallGraph::dump() const {
+ print(std::cerr, 0);
+}
+
//===----------------------------------------------------------------------===//
// Implementations of public modification methods
//
OpenPOWER on IntegriCloud