llvm.org GIT mirror llvm / 7d38c10
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 Bill Wendling 7 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
190190 };
191191 private:
192192 friend class AttrBuilder;
193 friend class AttributeSetImpl;
193194
194195 /// \brief The attributes that we are managing. This can be null to represent
195196 /// the empty attributes list.
208209 /// attribute list. Since attribute lists are immutable, this returns the new
209210 /// list.
210211 AttributeSet removeAttr(LLVMContext &C, unsigned Idx, Attribute Attrs) const;
212
213 /// \brief Create an AttributeSet from the AttributeWithIndex structures.
214 /// N.B. this is only temporary. It will be disappearing in the future.
215 static AttributeSet get(LLVMContext &C, ArrayRef Attrs);
211216
212217 explicit AttributeSet(AttributeSetImpl *LI) : AttrList(LI) {}
213218 public:
220225 //===--------------------------------------------------------------------===//
221226
222227 /// \brief Return an AttributeSet with the specified parameters in it.
223 static AttributeSet get(LLVMContext &C, ArrayRef Attrs);
224228 static AttributeSet get(LLVMContext &C, ArrayRef Attrs);
225229 static AttributeSet get(LLVMContext &C, unsigned Idx,
226230 ArrayRef Kind);