summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-08 03:27:49 +0000
committerChris Lattner <sabre@nondot.org>2004-08-08 03:27:49 +0000
commitaf8a42445c99d2d733caf1f9ef3e3b53827613d5 (patch)
treeb7c7457b2ed39fd16fc348707fa949b92dd4e98e /include
parent68392422e6f2176b5dc686332a6dd4a69b87f83b (diff)
Add standard print/dump methods to CallGraph classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/CallGraph.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h
index 901100dd1f1..86a2b53ad49 100644
--- a/include/llvm/Analysis/CallGraph.h
+++ b/include/llvm/Analysis/CallGraph.h
@@ -166,6 +166,10 @@ public:
///
void print(std::ostream &o, const Module *M) const;
+ /// dump - Print out this call graph.
+ ///
+ void dump() const;
+
// stub - dummy function, just ignore it
static void stub();
private:
@@ -217,6 +221,10 @@ public:
//
CallGraphNode *operator[](unsigned i) const { return CalledFunctions[i];}
+ /// dump - Print out this call graph node.
+ ///
+ void dump() const;
+ void print(std::ostream &OS) const;
//===---------------------------------------------------------------------
// Methods to keep a call graph up to date with a function that has been