diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-04 18:08:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-04 18:08:00 +0000 |
commit | e940f3e6bbce1575d137df97f26e4df00a3877b7 (patch) | |
tree | 5f626bca6b498189af41ad38649dcbddac36dd79 /include/llvm/Function.h | |
parent | 8d59af356f68fa960cb3e69551d5a8b87d6a71b0 (diff) | |
download | llvm-e940f3e6bbce1575d137df97f26e4df00a3877b7.tar.gz llvm-e940f3e6bbce1575d137df97f26e4df00a3877b7.tar.bz2 llvm-e940f3e6bbce1575d137df97f26e4df00a3877b7.tar.xz |
comment cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 7a58e8be61..f2b1a4f436 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -69,7 +69,7 @@ private: 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 @@ public: 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); } |