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
This commit is contained in:
David Greene 2011-07-29 19:06:59 +00:00
parent cd0bc905d2
commit c45a2cacd0

View File

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