diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-30 22:24:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-30 22:24:32 +0000 |
commit | 23603a61c9bd43224db0b52126a415901d7550b4 (patch) | |
tree | 4f331c37e94586d0dd812e967845978ba63ec701 /lib/Analysis/IPA/CallGraph.cpp | |
parent | 0665552c615547d8e26cf0473a6adaded3af1bbf (diff) | |
download | external_llvm-23603a61c9bd43224db0b52126a415901d7550b4.zip external_llvm-23603a61c9bd43224db0b52126a415901d7550b4.tar.gz external_llvm-23603a61c9bd43224db0b52126a415901d7550b4.tar.bz2 |
add a dump() method on callgraph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r-- | lib/Analysis/IPA/CallGraph.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index f03e4b2..453f4c2 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp @@ -181,6 +181,9 @@ void CallGraph::print(raw_ostream &OS, Module*) const { for (CallGraph::const_iterator I = begin(), E = end(); I != E; ++I) I->second->print(OS); } +void CallGraph::dump() const { + print(errs(), 0); +} //===----------------------------------------------------------------------===// // Implementations of public modification methods |