add a dump method to CallGraph

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-01-14 19:17:02 +00:00
parent 3a04ffbf6d
commit 1694ec615f
2 changed files with 6 additions and 1 deletions

View File

@ -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:

View File

@ -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
//