diff options
| author | Bill Wendling <isanbard@gmail.com> | 2013-01-31 23:53:05 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2013-01-31 23:53:05 +0000 |
| commit | 16c4b3cf2943ae2327752cf3de39769d14cfcece (patch) | |
| tree | 1bbb475c858240f8c52496ba3ad2bb19f82428c3 /include/llvm | |
| parent | ac08785edaac826afe11a4e596a46fc693848848 (diff) | |
Add iterators to the AttributeSet class so that we can access the Attributes in a nice way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
| -rw-r--r-- | include/llvm/IR/Attributes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 508277c130..49ef884b70 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -270,6 +270,11 @@ public: /// \brief Return the attributes at the index as a string. std::string getAsString(unsigned Index) const; + typedef ArrayRef<Attribute>::iterator iterator; + + iterator begin(unsigned Idx); + iterator end(unsigned Idx); + /// operator==/!= - Provide equality predicates. bool operator==(const AttributeSet &RHS) const { return pImpl == RHS.pImpl; |
