forked from OSchip/llvm-project
parent
96568f91cd
commit
0170cc7523
|
@ -336,10 +336,6 @@ public:
|
|||
/// \brief Return the attributes at the given slot.
|
||||
AttributeSet getSlotAttributes(unsigned Slot) const;
|
||||
|
||||
/// \brief Return the AttributeWithIndex at the specified slot. This holds a
|
||||
/// index number plus a set of attributes.
|
||||
const AttributeWithIndex &getSlot(unsigned Slot) const;
|
||||
|
||||
void dump() const;
|
||||
};
|
||||
|
||||
|
|
|
@ -649,14 +649,6 @@ AttributeSet AttributeSet::getSlotAttributes(unsigned Slot) const {
|
|||
return AttrList->getSlotAttributes(Slot);
|
||||
}
|
||||
|
||||
/// getSlot - Return the AttributeWithIndex at the specified slot. This
|
||||
/// holds a number plus a set of attributes.
|
||||
const AttributeWithIndex &AttributeSet::getSlot(unsigned Slot) const {
|
||||
assert(AttrList && Slot < AttrList->getNumAttributes() &&
|
||||
"Slot # out of range!");
|
||||
return AttrList->getAttributes()[Slot];
|
||||
}
|
||||
|
||||
bool AttributeSet::hasAttribute(unsigned Index, Attribute::AttrKind Kind) const{
|
||||
return getAttributes(Index).hasAttribute(Kind);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue