aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r--utils/TableGen/Record.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h
index 467f12a6ab..130bf5aa36 100644
--- a/utils/TableGen/Record.h
+++ b/utils/TableGen/Record.h
@@ -605,6 +605,12 @@ public:
///
std::string getValueAsString(const std::string &FieldName) const;
+ /// getValueAsBitsInit - This method looks up the specified field and returns
+ /// its value as a BitsInit, throwing an exception if the field does not exist
+ /// or if the value is not the right type.
+ ///
+ BitsInit *getValueAsBitsInit(const std::string &FieldName) const;
+
};
std::ostream &operator<<(std::ostream &OS, const Record &R);