diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-30 23:07:40 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-30 23:07:40 +0000 |
commit | e74365462a39529ae48ef4d34ec76b4543b8ea29 (patch) | |
tree | 9b33c2e0687dc421a4b4e64c436b6c81f92bb855 /include | |
parent | b25a645830b49beb1c5dbc326953ed16f77a19ed (diff) | |
download | external_llvm-e74365462a39529ae48ef4d34ec76b4543b8ea29.zip external_llvm-e74365462a39529ae48ef4d34ec76b4543b8ea29.tar.gz external_llvm-e74365462a39529ae48ef4d34ec76b4543b8ea29.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Attributes.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index a1da447..5cad4c9 100644 --- a/include/llvm/IR/Attributes.h +++ b/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 |