Use the new version of isSubClassOf
[oota-llvm.git] / support / tools / TableGen / TableGenBackend.h
index b9e8c49d4c5a978f40af8b7fae4dc32c8cf19819..8dfbaddad160c442138d27fd0985f27fedf74e5a 100644 (file)
 
 #include <string>
 #include <iosfwd>
+class Record;
+class RecordKeeper;
 
 struct TableGenBackend {
+  virtual ~TableGenBackend() {}
 
   // run - All TableGen backends should implement the run method, which should
   // be the main entry point.
@@ -19,8 +22,13 @@ struct TableGenBackend {
 
 
 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;
 
+  /// getQualifiedName - Return the name of the specified record, with a
+  /// namespace qualifier if the record contains one.
+  std::string getQualifiedName(Record *R) const;
 };
 
 #endif