summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit4bd5aebaeadf22ef74a716710009056cb511cc14 (patch)
tree75783e1acbd8613296adb39ad3324944de87e7e9 /llvm
parentea844f0bc9743b146b00b13ce746c510a2bb5a22 (diff)
downloadbcm5719-llvm-4bd5aebaeadf22ef74a716710009056cb511cc14.tar.gz
bcm5719-llvm-4bd5aebaeadf22ef74a716710009056cb511cc14.zip
Add ListInit::getValues
Add a getValues ListInit method to return the sequence of values in the list. llvm-svn: 136482
Diffstat (limited to 'llvm')
-rw-r--r--llvm/utils/TableGen/Record.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/Record.h b/llvm/utils/TableGen/Record.h
index f4d091723dd..b90a50c2222 100644
--- a/llvm/utils/TableGen/Record.h
+++ b/llvm/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(); }
OpenPOWER on IntegriCloud