Add a flag to mark a dirty cache entry. This is not yet used, but will eventually
[oota-llvm.git] / include / llvm / Analysis / Trace.h
index 7de511f142004e692ccee9b1307113e3389ab46d..65aa593c8d263665128925530a4b0b5bd3ab69f1 100644 (file)
 #ifndef LLVM_ANALYSIS_TRACE_H
 #define LLVM_ANALYSIS_TRACE_H
 
-#include <iosfwd>
+#include "llvm/Support/Streams.h"
 #include <vector>
 #include <cassert>
 
-namespace llvm { 
+namespace llvm {
   class BasicBlock;
   class Function;
   class Module;
@@ -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.