summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-30 23:07:40 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-30 23:07:40 +0000
commitd219675c2a8d5acc0bb77752cf242a7af0f97fe0 (patch)
tree7df5a6487a651c77b636c1b4d3e4cb56c93b6a36 /llvm/include
parent85e62eca660491a5b1a31bfe1e4b0efe7a5b93a5 (diff)
downloadbcm5719-llvm-d219675c2a8d5acc0bb77752cf242a7af0f97fe0.tar.gz
bcm5719-llvm-d219675c2a8d5acc0bb77752cf242a7af0f97fe0.zip
Convert typeIncompatible to return an AttributeSet.
There are still places which treat the Attribute object as a collection of attributes. I'm systematically removing them. llvm-svn: 173990
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/Attributes.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h
index a1da4470d03..5cad4c9e496 100644
--- a/llvm/include/llvm/IR/Attributes.h
+++ b/llvm/include/llvm/IR/Attributes.h
@@ -377,10 +377,7 @@ public:
AttrBuilder &addAttributes(Attribute A);
/// \brief Remove the attributes from the builder.
- AttrBuilder &removeAttributes(Attribute A);
-
- /// \brief Add the attributes to the builder.
- AttrBuilder &addAttributes(AttributeSet A);
+ AttrBuilder &removeAttributes(AttributeSet A, uint64_t Index);
/// \brief Return true if the builder has the specified attribute.
bool contains(Attribute::AttrKind A) const;
@@ -390,7 +387,7 @@ public:
/// \brief Return true if the builder has any attribute that's in the
/// specified attribute.
- bool hasAttributes(const Attribute &A) const;
+ bool hasAttributes(AttributeSet A, uint64_t Index) const;
/// \brief Return true if the builder has an alignment attribute.
bool hasAlignmentAttr() const;
@@ -461,7 +458,7 @@ public:
namespace AttributeFuncs {
/// \brief Which attributes cannot be applied to a type.
-Attribute typeIncompatible(Type *Ty);
+AttributeSet typeIncompatible(Type *Ty, uint64_t Index);
/// \brief This returns an integer containing an encoding of all the LLVM
/// attributes found in the given attribute bitset. Any change to this encoding
OpenPOWER on IntegriCloud