mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
Remove the last of uses that use the Attribute object as a collection of attributes.
Collections of attributes are handled via the AttributeSet class now. This finally frees us up to make significant changes to how attributes are structured. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173228 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -79,10 +79,10 @@ public:
|
||||
bool hasStructRetAttr() const;
|
||||
|
||||
/// \brief Add a Attribute to an argument.
|
||||
void addAttr(Attribute);
|
||||
void addAttr(AttributeSet AS);
|
||||
|
||||
/// \brief Remove a Attribute from an argument.
|
||||
void removeAttr(Attribute);
|
||||
void removeAttr(AttributeSet AS);
|
||||
|
||||
/// \brief Method for support type inquiry through isa, cast, and
|
||||
/// dyn_cast.
|
||||
|
||||
@@ -234,6 +234,8 @@ public:
|
||||
|
||||
/// \brief Return an AttributeSet with the specified parameters in it.
|
||||
static AttributeSet get(LLVMContext &C, ArrayRef<AttributeWithIndex> Attrs);
|
||||
static AttributeSet get(LLVMContext &C, unsigned Idx,
|
||||
Attribute::AttrKind Kind);
|
||||
static AttributeSet get(LLVMContext &C, unsigned Idx, AttrBuilder &B);
|
||||
|
||||
/// \brief Add an attribute to the attribute set at the given index. Since
|
||||
@@ -275,9 +277,7 @@ public:
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
||||
/// \brief The attributes for the specified index are returned.
|
||||
Attribute getParamAttributes(unsigned Idx) const {
|
||||
return getAttributes(Idx);
|
||||
}
|
||||
AttributeSet getParamAttributes(unsigned Idx) const;
|
||||
|
||||
/// \brief The attributes for the ret value are returned.
|
||||
AttributeSet getRetAttributes() const;
|
||||
|
||||
Reference in New Issue
Block a user