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
#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"
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(); }