diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 431c59db354..e8762942b1b 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -177,7 +177,22 @@ template<> struct DenseMapInfo { class AttrBuilder; class AttributeSetImpl; -struct AttributeWithIndex; + +//===----------------------------------------------------------------------===// +/// \class +/// \brief This is just a pair of values to associate a set of attributes with +/// an index. +struct AttributeWithIndex { + Attribute Attrs; ///< The attributes that are set, or'd together. + unsigned Index; ///< Index of the parameter for which the attributes apply. + + static AttributeWithIndex get(unsigned Idx, Attribute Attrs) { + AttributeWithIndex P; + P.Index = Idx; + P.Attrs = Attrs; + return P; + } +}; //===----------------------------------------------------------------------===// /// \class @@ -343,22 +358,6 @@ public: void dump() const; }; -//===----------------------------------------------------------------------===// -/// \class -/// \brief This is just a pair of values to associate a set of attributes with -/// an index. -struct AttributeWithIndex { - Attribute Attrs; ///< The attributes that are set, or'd together. - unsigned Index; ///< Index of the parameter for which the attributes apply. - - static AttributeWithIndex get(unsigned Idx, Attribute Attrs) { - AttributeWithIndex P; - P.Index = Idx; - P.Attrs = Attrs; - return P; - } -}; - //===----------------------------------------------------------------------===// /// \class /// \brief This class is used in conjunction with the Attribute::get method to