summaryrefslogtreecommitdiff
path: root/utils/TableGen/TableGenBackend.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/TableGen/TableGenBackend.h')
-rw-r--r--utils/TableGen/TableGenBackend.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/TableGen/TableGenBackend.h b/utils/TableGen/TableGenBackend.h
index b9e8c49d4c..ae71d2c66b 100644
--- a/utils/TableGen/TableGenBackend.h
+++ b/utils/TableGen/TableGenBackend.h
@@ -10,6 +10,8 @@
#include <string>
#include <iosfwd>
+class Record;
+class RecordKeeper;
struct TableGenBackend {
@@ -19,8 +21,16 @@ 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;
+
+ /// getTarget - Return the current instance of the Target class.
+ Record *getTarget(RecordKeeper &RC) const;
};
#endif