diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-27 10:00:13 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-27 10:00:13 +0000 |
commit | 08c11d302325b3715d77f4208d183c9b2a253b14 (patch) | |
tree | ffa5be636aa89ebc10efb8975ca7ca70b2567782 /include | |
parent | 09dda440ba6622b64713ef5f7d9531411e3589ea (diff) | |
download | external_llvm-08c11d302325b3715d77f4208d183c9b2a253b14.zip external_llvm-08c11d302325b3715d77f4208d183c9b2a253b14.tar.gz external_llvm-08c11d302325b3715d77f4208d183c9b2a253b14.tar.bz2 |
Rearrange some deckchairs. Moving the class before it's use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Attributes.h | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 431c59d..e876294 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -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 @@ -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 |