add a dump() method on callgraph.
[oota-llvm.git] / lib / Analysis / IPA / CallGraph.cpp
index f03e4b2ba24639fef15aa5139c1a6558b9702b1e..453f4c2fb3ed68f99b051c69b7745c59b35a005d 100644 (file)
@@ -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