From c45a2cacd09f88b8b715fd89f5bf6c2347b2cce9 Mon Sep 17 00:00:00 2001 From: David Greene Date: Fri, 29 Jul 2011 19:06:59 +0000 Subject: [PATCH] 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 --- utils/TableGen/Record.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index f4d091723dd..b90a50c2222 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 getValues() const { return Values; } + inline iterator begin() { return Values.begin(); } inline const_iterator begin() const { return Values.begin(); } inline iterator end () { return Values.end(); }