For PR411:
[oota-llvm.git] / include / llvm / BasicBlock.h
index f15d2b46a91453ca2a2bfa3802afb623389a2586..0ca8eae1a3ef01e1865083e111d85b594c55d162 100644 (file)
@@ -152,6 +152,7 @@ public:
         InstListType &getInstList()       { return InstList; }
 
   virtual void print(std::ostream &OS) const { print(OS, 0); }
+  void print(std::ostream *OS) const { if (OS) print(*OS); }
   void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const;
 
   /// Methods for support type inquiry through isa, cast, and dyn_cast: