[llvm-commits] [llvm] r57058 - /llvm/trunk/include/llvm/Function.h

Chris Lattner sabre at nondot.org
Sat Oct 4 11:08:00 PDT 2008


Author: lattner
Date: Sat Oct  4 13:08:00 2008
New Revision: 57058

URL: http://llvm.org/viewvc/llvm-project?rev=57058&view=rev
Log:
comment cleanups


Modified:
    llvm/trunk/include/llvm/Function.h

Modified: llvm/trunk/include/llvm/Function.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Function.h?rev=57058&r1=57057&r2=57058&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Function.h (original)
+++ llvm/trunk/include/llvm/Function.h Sat Oct  4 13:08:00 2008
@@ -69,7 +69,7 @@
   BasicBlockListType  BasicBlocks;        ///< The basic blocks
   mutable ArgumentListType ArgumentList;  ///< The formal arguments
   ValueSymbolTable *SymTab;               ///< Symbol table of args/instructions
-  AttrListPtr AttributeList;                   ///< Parameter attributes
+  AttrListPtr AttributeList;              ///< Parameter attributes
 
   // The Calling Convention is stored in Value::SubclassData.
   /*unsigned CallingConvention;*/
@@ -140,24 +140,23 @@
     SubclassData = (SubclassData & 1) | (CC << 1);
   }
   
-  /// getAttributes - Return the parameter attributes for this Function.
+  /// getAttributes - Return the attribute list for this Function.
   ///
   const AttrListPtr &getAttributes() const { return AttributeList; }
 
-  /// setAttributes - Set the parameter attributes for this Function.
+  /// setAttributes - Set the attribute list for this Function.
   ///
   void setAttributes(const AttrListPtr &attrs) { AttributeList = attrs; }
 
-
   /// hasFnAttr - Return true if this function has the given attribute.
   bool hasFnAttr(Attributes N) const {
     // Function Attributes are stored at ~0 index 
     return AttributeList.paramHasAttr(~0U, N);
   }
 
-  /// addFnAttr - Add function attributes
+  /// addFnAttr - Add function attributes to this function.
   ///
-  void addFnAttr(const Attributes N) { 
+  void addFnAttr(Attributes N) { 
     // Function Attributes are stored at ~0 index 
     addAttribute(~0, N);
   }





More information about the llvm-commits mailing list