[llvm-commits] [llvm] r173612 - Rearrange some deckchairs. Moving the class before it's use.
Bill Wendling
isanbard at gmail.com
Sun Jan 27 02:00:13 PST 2013
Author: void
Date: Sun Jan 27 04:00:13 2013
New Revision: 173612
URL: http://llvm.org/viewvc/llvm-project?rev=173612&view=rev
Log:
Rearrange some deckchairs. Moving the class before it's use.
Modified:
llvm/trunk/include/llvm/IR/Attributes.h
Modified: llvm/trunk/include/llvm/IR/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Attributes.h?rev=173612&r1=173611&r2=173612&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Attributes.h (original)
+++ llvm/trunk/include/llvm/IR/Attributes.h Sun Jan 27 04:00:13 2013
@@ -177,7 +177,22 @@ template<> struct DenseMapInfo<Attribute
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
@@ -345,22 +360,6 @@ public:
//===----------------------------------------------------------------------===//
/// \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
/// create an Attribute object. The object itself is uniquified. The Builder's
/// value, however, is not. So this can be used as a quick way to test for
More information about the llvm-commits
mailing list