[llvm] r258648 - Remove duplicate documentation in Attributes.cpp. NFC.

Manuel Jacob via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 23 14:42:24 PST 2016


Author: mjacob
Date: Sat Jan 23 16:42:24 2016
New Revision: 258648

URL: http://llvm.org/viewvc/llvm-project?rev=258648&view=rev
Log:
Remove duplicate documentation in Attributes.cpp.  NFC.

The documentation for these methods is already present in the header.

Modified:
    llvm/trunk/lib/IR/Attributes.cpp

Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=258648&r1=258647&r2=258648&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Sat Jan 23 16:42:24 2016
@@ -154,22 +154,18 @@ bool Attribute::hasAttribute(StringRef K
   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(unsigne
   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(un
   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
 // 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;
 }




More information about the llvm-commits mailing list