Update a comment to reflect changes in the surrounding code.
[oota-llvm.git] / include / llvm / Analysis / Trace.h
index 32d36296712b79c16cb5c4489958cb96605219b0..fd615fcdae0865fa2ff1e0bf6cbb3a8d7a3c8773 100644 (file)
@@ -2,8 +2,8 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
@@ -18,7 +18,7 @@
 #ifndef LLVM_ANALYSIS_TRACE_H
 #define LLVM_ANALYSIS_TRACE_H
 
-#include <iosfwd>
+#include "llvm/Support/Streams.h"
 #include <vector>
 #include <cassert>
 
@@ -107,6 +107,7 @@ public:
   /// print - Write trace to output stream.
   ///
   void print (std::ostream &O) const;
+  void print (std::ostream *O) const { if (O) print(*O); }
 
   /// dump - Debugger convenience method; writes trace to standard error
   /// output stream.