diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-27 03:35:32 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-27 03:35:32 +0000 |
commit | 7d38c109aab8654e63e9071c7d948661f6b58433 (patch) | |
tree | ab08e815c857c64ace63ffbcffa14b430a214106 /include | |
parent | e3617247a0cbaf0d108ae22428c2a8fb47c257e6 (diff) | |
download | llvm-7d38c109aab8654e63e9071c7d948661f6b58433.tar.gz llvm-7d38c109aab8654e63e9071c7d948661f6b58433.tar.bz2 llvm-7d38c109aab8654e63e9071c7d948661f6b58433.tar.xz |
Hide the method that creates an AttributeSet with AttributeWithIndexes.
This method will go away once AttributeWithIndex goes away. In the meantime,
hide it from general use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173607 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Attributes.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index bd0a87e117..855743af5c 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -191,6 +191,7 @@ public: }; private: friend class AttrBuilder; + friend class AttributeSetImpl; /// \brief The attributes that we are managing. This can be null to represent /// the empty attributes list. @@ -210,6 +211,10 @@ private: /// list. AttributeSet removeAttr(LLVMContext &C, unsigned Idx, Attribute Attrs) const; + /// \brief Create an AttributeSet from the AttributeWithIndex structures. + /// N.B. this is only temporary. It will be disappearing in the future. + static AttributeSet get(LLVMContext &C, ArrayRef<AttributeWithIndex> Attrs); + explicit AttributeSet(AttributeSetImpl *LI) : AttrList(LI) {} public: AttributeSet() : AttrList(0) {} @@ -221,7 +226,6 @@ public: //===--------------------------------------------------------------------===// /// \brief Return an AttributeSet with the specified parameters in it. - static AttributeSet get(LLVMContext &C, ArrayRef<AttributeWithIndex> Attrs); static AttributeSet get(LLVMContext &C, ArrayRef<AttributeSet> Attrs); static AttributeSet get(LLVMContext &C, unsigned Idx, ArrayRef<Attribute::AttrKind> Kind); |