diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-07 06:00:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-07 06:00:43 +0000 |
commit | 784a793636b7e766e868822c213ca96b0755b5c1 (patch) | |
tree | 45f8cf469ef4e515a7957a0b896076b3e93b8a6d /utils/TableGen/Record.h | |
parent | 018c9e4d2657d14d3c9eae683e7a977cda956d19 (diff) | |
download | llvm-784a793636b7e766e868822c213ca96b0755b5c1.tar.gz llvm-784a793636b7e766e868822c213ca96b0755b5c1.tar.bz2 llvm-784a793636b7e766e868822c213ca96b0755b5c1.tar.xz |
Add new method getVAlueAsDag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r-- | utils/TableGen/Record.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index b26e13ec8c..b621451643 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -759,6 +759,12 @@ public: /// the value is not the right type. /// int getValueAsInt(const std::string &FieldName) const; + + /// getValueAsDag - This method looks up the specified field and returns its + /// value as an Dag, throwing an exception if the field does not exist or if + /// the value is not the right type. + /// + DagInit *getValueAsDag(const std::string &FieldName) const; }; std::ostream &operator<<(std::ostream &OS, const Record &R); |