Rearrange some deckchairs. Moving the class before it's use.
authorBill Wendling <isanbard@gmail.com>
Sun, 27 Jan 2013 10:00:13 +0000 (10:00 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 27 Jan 2013 10:00:13 +0000 (10:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173612 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Attributes.h

index 431c59db354eb65710d9984f5fd2f471b70334ca..e8762942b1bea1fd7cbd998ebef4b9cd246a4cf8 100644 (file)
@@ -177,7 +177,22 @@ template<> struct DenseMapInfo<Attribute::AttrKind> {
 
 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