Add new instructions for handling data passed into eh landing pad.
[oota-llvm.git] / include / llvm / CodeGen / SchedGraphCommon.h
index 4f6e2ad32fc819eac117a595f67785cd7078fa5e..4fcd9acc0ea198a66281923de2e1a11d278f916c 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "llvm/Value.h"
 #include "llvm/ADT/iterator"
+#include "llvm/Support/Streams.h"
 #include <vector>
 
 namespace llvm {
@@ -70,6 +71,7 @@ public:
 
   // Debugging support
   virtual void print(std::ostream &os) const = 0;
+  void print(std::ostream *os) const { if (os) print(*os); }
 
 protected:
   friend class SchedGraphCommon;
@@ -98,9 +100,6 @@ inline std::ostream &operator<<(std::ostream &os,
   return os;
 }
 
-
-
-
 //
 // SchedGraphEdge - Edge class to represent dependencies
 //
@@ -183,6 +182,7 @@ public:
 public:
   // Debugging support
   void print(std::ostream &os) const;
+  void print(std::ostream *os) const { if (os) print(*os); }
   void dump(int indent=0) const;
 
 private: