Don't keep the log files around. Just pipe to a log file instead.
[oota-llvm.git] / utils / TableGen / TableGenBackend.h
index 6f6fe46262819a11295007a58ee2188384df98f9..9c2b948b0dfc426b61cf488ee65e3d2332f67e6f 100644 (file)
@@ -15,8 +15,8 @@
 #ifndef TABLEGENBACKEND_H
 #define TABLEGENBACKEND_H
 
+#include "llvm/Support/raw_ostream.h"
 #include <string>
-#include <iosfwd>
 
 namespace llvm {
 
@@ -28,17 +28,14 @@ struct TableGenBackend {
 
   // run - All TableGen backends should implement the run method, which should
   // be the main entry point.
-  virtual void run(std::ostream &OS) = 0;
+  virtual void run(raw_ostream &OS) = 0;
 
 
 public:   // Useful helper routines...
   /// EmitSourceFileHeader - Output a LLVM style file header to the specified
   /// ostream.
-  void EmitSourceFileHeader(const std::string &Desc, std::ostream &OS) const;
+  void EmitSourceFileHeader(const std::string &Desc, raw_ostream &OS) const;
 
-  /// getQualifiedName - Return the name of the specified record, with a
-  /// namespace qualifier if the record contains one.
-  std::string getQualifiedName(Record *R) const;
 };
 
 } // End llvm namespace