diff options
author | Manuel Jacob <me@manueljacob.de> | 2016-01-23 22:42:24 +0000 |
---|---|---|
committer | Manuel Jacob <me@manueljacob.de> | 2016-01-23 22:42:24 +0000 |
commit | 5d073c4508590fbc561f5d610ec65917020dd65d (patch) | |
tree | 3d696cde78139587809d1a0f3e322a85bfeaf71a | |
parent | 25510fcf5cb9481f153e59263ac7c8bddd961bcb (diff) | |
download | bcm5719-llvm-5d073c4508590fbc561f5d610ec65917020dd65d.tar.gz bcm5719-llvm-5d073c4508590fbc561f5d610ec65917020dd65d.zip |
Remove duplicate documentation in Attributes.cpp. NFC.
The documentation for these methods is already present in the header.
llvm-svn: 258648
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 6c01bb64562..6c9d43d29df 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -154,22 +154,18 @@ bool Attribute::hasAttribute(StringRef Kind) const { return pImpl && pImpl->hasAttribute(Kind); } -/// This returns the alignment field of an attribute as a byte alignment value. unsigned Attribute::getAlignment() const { assert(hasAttribute(Attribute::Alignment) && "Trying to get alignment from non-alignment attribute!"); return pImpl->getValueAsInt(); } -/// This returns the stack alignment field of an attribute as a byte alignment -/// value. unsigned Attribute::getStackAlignment() const { assert(hasAttribute(Attribute::StackAlignment) && "Trying to get alignment from non-alignment attribute!"); return pImpl->getValueAsInt(); } -/// This returns the number of dereferenceable bytes. uint64_t Attribute::getDereferenceableBytes() const { assert(hasAttribute(Attribute::Dereferenceable) && "Trying to get dereferenceable bytes from " @@ -1008,8 +1004,6 @@ bool AttributeSet::hasAttributes(unsigned Index) const { return ASN && ASN->hasAttributes(); } -/// \brief Return true if the specified attribute is set for at least one -/// parameter or for the return value. bool AttributeSet::hasAttrSomewhere(Attribute::AttrKind Attr) const { if (!pImpl) return false; @@ -1060,7 +1054,6 @@ std::string AttributeSet::getAsString(unsigned Index, return ASN ? ASN->getAsString(InAttrGrp) : std::string(""); } -/// \brief The attributes for the specified index are returned. AttributeSetNode *AttributeSet::getAttributes(unsigned Index) const { if (!pImpl) return nullptr; @@ -1088,9 +1081,6 @@ AttributeSet::iterator AttributeSet::end(unsigned Slot) const { // AttributeSet Introspection Methods //===----------------------------------------------------------------------===// -/// \brief Return the number of slots used in this attribute list. This is the -/// number of arguments that have an attribute set on them (including the -/// function itself). unsigned AttributeSet::getNumSlots() const { return pImpl ? pImpl->getNumAttributes() : 0; } |