summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/CallGraph.h3
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp4
2 files changed, 6 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/CallGraph.h b/llvm/include/llvm/Analysis/CallGraph.h
index 4edb6023562..e477be34f8e 100644
--- a/llvm/include/llvm/Analysis/CallGraph.h
+++ b/llvm/include/llvm/Analysis/CallGraph.h
@@ -147,7 +147,8 @@ public:
void initialize(Module &M);
virtual void print(std::ostream &o, const Module *M) const;
-
+ void dump() const;
+
// stub - dummy function, just ignore it
static void stub();
protected:
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