add a dump method to CallGraph
llvm-svn: 25314
This commit is contained in:
parent
542c3c17a9
commit
bc351e171f
@ -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:
|
||||
|
||||
@ -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
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user