summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-07-29 19:06:59 +0000
committerDavid Greene <greened@obbligato.org>2011-07-29 19:06:59 +0000
commitc45a2cacd09f88b8b715fd89f5bf6c2347b2cce9 (patch)
tree6e8aaa182b222d1f7587030a2c734b798e146b68 /utils/TableGen/Record.h
parentcd0bc905d2c100edbf2f65ac7f1d58353fb1728c (diff)
downloadllvm-c45a2cacd09f88b8b715fd89f5bf6c2347b2cce9.tar.gz
llvm-c45a2cacd09f88b8b715fd89f5bf6c2347b2cce9.tar.bz2
llvm-c45a2cacd09f88b8b715fd89f5bf6c2347b2cce9.tar.xz
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/TableGen/Record.h')
-rw-r--r--utils/TableGen/Record.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h
index f4d091723d..b90a50c222 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(); }