/// \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;
return 0;
}
+AttributeSet::iterator AttributeSet::begin(unsigned Idx) {
+ if (!pImpl)
+ return ArrayRef<Attribute>().begin();
+ return pImpl->begin(Idx);
+}
+
+AttributeSet::iterator AttributeSet::end(unsigned Idx) {
+ if (!pImpl)
+ return ArrayRef<Attribute>().end();
+ return pImpl->begin(Idx);
+}
+
//===----------------------------------------------------------------------===//
// AttributeSet Introspection Methods
//===----------------------------------------------------------------------===//