summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-27 03:35:32 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-27 03:35:32 +0000
commit53e191b2bccd1cc6554106091d6bc164e7dbeeb7 (patch)
tree6e40c352609b775c95f33ab0958b84a87eee3cf7
parent4d3491cbea92a0e6fe85e86aba28d8bb62d896a8 (diff)
downloadbcm5719-llvm-53e191b2bccd1cc6554106091d6bc164e7dbeeb7.tar.gz
bcm5719-llvm-53e191b2bccd1cc6554106091d6bc164e7dbeeb7.zip
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. llvm-svn: 173607
-rw-r--r--llvm/include/llvm/IR/Attributes.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h
index bd0a87e117a..855743af5c1 100644
--- a/llvm/include/llvm/IR/Attributes.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud