diff options
Diffstat (limited to 'llvm/lib/VMCore/Attributes.cpp')
-rw-r--r-- | llvm/lib/VMCore/Attributes.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Attributes.cpp b/llvm/lib/VMCore/Attributes.cpp index b32358708d8..de83deb2e9a 100644 --- a/llvm/lib/VMCore/Attributes.cpp +++ b/llvm/lib/VMCore/Attributes.cpp @@ -451,6 +451,27 @@ const AttributeWithIndex &AttributeSet::getSlot(unsigned Slot) const { return AttrList->Attrs[Slot]; } +bool AttributeSet::hasAttribute(unsigned Index, Attribute::AttrKind Kind) const{ + return getAttributes(Index).hasAttribute(Kind); +} + +bool AttributeSet::hasAttributes(unsigned Index) const { + return getAttributes(Index).hasAttributes(); +} + +std::string AttributeSet::getAsString(unsigned Index) const { + return getAttributes(Index).getAsString(); +} + +unsigned AttributeSet::getStackAlignment(unsigned Index) const { + return getAttributes(Index).getStackAlignment(); +} + +uint64_t AttributeSet::getBitMask(unsigned Index) const { + // FIXME: Remove this. + return getAttributes(Index).getBitMask(); +} + /// getAttributes - The attributes for the specified index are returned. /// Attribute for the result are denoted with Idx = 0. Function notes are /// denoted with idx = ~0. |