diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-11-11 11:19:37 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-11-11 11:19:37 +0000 |
commit | af1b61debd9cb6570ed815a27cd94897f0dca3cf (patch) | |
tree | b56dc328ea88700f9e7e92c50cc449363617ad65 /utils/TableGen/Record.h | |
parent | e3ef744d3e3557ee286d2ed3bf8306e5fbbd1ac4 (diff) | |
download | llvm-af1b61debd9cb6570ed815a27cd94897f0dca3cf.tar.gz llvm-af1b61debd9cb6570ed815a27cd94897f0dca3cf.tar.bz2 llvm-af1b61debd9cb6570ed815a27cd94897f0dca3cf.tar.xz |
Add convenient helper to obtain list of ints
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r-- | utils/TableGen/Record.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index d419f0b629..5e88e50d3e 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -1042,11 +1042,17 @@ public: ListInit *getValueAsListInit(const std::string &FieldName) const; /// getValueAsListOfDefs - This method looks up the specified field and - /// returnsits value as a vector of records, throwing an exception if the + /// returns its value as a vector of records, throwing an exception if the /// field does not exist or if the value is not the right type. /// std::vector<Record*> getValueAsListOfDefs(const std::string &FieldName) const; + /// getValueAsListOfInts - This method looks up the specified field and returns + /// its value as a vector of integers, throwing an exception if the field does + /// not exist or if the value is not the right type. + /// + std::vector<int> getValueAsListOfInts(const std::string &FieldName) const; + /// getValueAsDef - This method looks up the specified field and returns its /// value as a Record, throwing an exception if the field does not exist or if /// the value is not the right type. |