summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-03 21:58:13 +0000
committerChris Lattner <sabre@nondot.org>2003-08-03 21:58:13 +0000
commit0969c5bdf2de91fc03480dba86bcb6ce76612d8b (patch)
tree4d337570b0179f45388832fa954b201fe63df576 /utils/TableGen/Record.h
parenta3ae6143c1ec9c39a7beb07960f89edd4736b018 (diff)
downloadllvm-0969c5bdf2de91fc03480dba86bcb6ce76612d8b.tar.gz
llvm-0969c5bdf2de91fc03480dba86bcb6ce76612d8b.tar.bz2
llvm-0969c5bdf2de91fc03480dba86bcb6ce76612d8b.tar.xz
Add new Record::getValueAsBit method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7544 91177308-0d34-0410-b5e6-96231b3b80d8
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 d841a2af05..f933d4ff52 100644
--- a/utils/TableGen/Record.h
+++ b/utils/TableGen/Record.h
@@ -707,6 +707,12 @@ public:
///
Record *getValueAsDef(const std::string &FieldName) const;
+ /// getValueAsBit - This method looks up the specified field and returns its
+ /// value as a bit, throwing an exception if the field does not exist or if
+ /// the value is not the right type.
+ ///
+ bool getValueAsBit(const std::string &FieldName) const;
+
/// getValueAsInt - This method looks up the specified field and returns its
/// value as an int, throwing an exception if the field does not exist or if
/// the value is not the right type.