diff options
author | David Greene <greened@obbligato.org> | 2011-07-29 19:06:59 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-07-29 19:06:59 +0000 |
commit | c45a2cacd09f88b8b715fd89f5bf6c2347b2cce9 (patch) | |
tree | 6e8aaa182b222d1f7587030a2c734b798e146b68 /utils | |
parent | cd0bc905d2c100edbf2f65ac7f1d58353fb1728c (diff) | |
download | external_llvm-c45a2cacd09f88b8b715fd89f5bf6c2347b2cce9.zip external_llvm-c45a2cacd09f88b8b715fd89f5bf6c2347b2cce9.tar.gz external_llvm-c45a2cacd09f88b8b715fd89f5bf6c2347b2cce9.tar.bz2 |
Add ListInit::getValues
Add a getValues ListInit method to return the sequence of values in
the list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/Record.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index f4d0917..b90a50c 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -15,6 +15,7 @@ #ifndef RECORD_H #define RECORD_H +#include "llvm/ADT/ArrayRef.h" #include "llvm/Support/SourceMgr.h" #include "llvm/Support/DataTypes.h" #include "llvm/Support/raw_ostream.h" @@ -785,6 +786,8 @@ public: virtual std::string getAsString() const; + ArrayRef<Init*> getValues() const { return Values; } + inline iterator begin() { return Values.begin(); } inline const_iterator begin() const { return Values.begin(); } inline iterator end () { return Values.end(); } |