mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 07:00:57 +00:00
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:
parent
cd0bc905d2
commit
c45a2cacd0
@ -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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user