add a dump method to CallGraph

llvm-svn: 25314
This commit is contained in:
Chris Lattner 2006-01-14 19:17:02 +00:00
parent 956b57ce43
commit f75f017cae
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
//