[PM] Move the LazyCallGraph printing functionality to a print method.
[opencl/llvm.git] / include / llvm / Analysis / LazyCallGraph.h
index b0b9068de34bf7a2d90f39053ecc94fcd8ed22a3..a7960e186142f94fbb56fb7e1cf610c0ce3a4825 100644 (file)
@@ -462,6 +462,12 @@ public:
 
   ///@}
 
+  /// \brief Print out the CFG to the provided stream.
+  ///
+  /// This will fully traverse the call graph (and so is non-const) and print
+  /// it out to the provided stream.
+  void print(raw_ostream &OS, Module &M);
+
 private:
   /// \brief Allocator that holds all the call graph nodes.
   SpecificBumpPtrAllocator<Node> BPA;