comment cleanups

llvm-svn: 57058
This commit is contained in:
Chris Lattner 2008-10-04 18:08:00 +00:00
parent 7e438ede4d
commit 780a2ecd4f
1 changed files with 5 additions and 6 deletions

View File

@ -69,7 +69,7 @@ private:
BasicBlockListType BasicBlocks; ///< The basic blocks BasicBlockListType BasicBlocks; ///< The basic blocks
mutable ArgumentListType ArgumentList; ///< The formal arguments mutable ArgumentListType ArgumentList; ///< The formal arguments
ValueSymbolTable *SymTab; ///< Symbol table of args/instructions ValueSymbolTable *SymTab; ///< Symbol table of args/instructions
AttrListPtr AttributeList; ///< Parameter attributes AttrListPtr AttributeList; ///< Parameter attributes
// The Calling Convention is stored in Value::SubclassData. // The Calling Convention is stored in Value::SubclassData.
/*unsigned CallingConvention;*/ /*unsigned CallingConvention;*/
@ -140,24 +140,23 @@ public:
SubclassData = (SubclassData & 1) | (CC << 1); 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; } 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; } void setAttributes(const AttrListPtr &attrs) { AttributeList = attrs; }
/// hasFnAttr - Return true if this function has the given attribute. /// hasFnAttr - Return true if this function has the given attribute.
bool hasFnAttr(Attributes N) const { bool hasFnAttr(Attributes N) const {
// Function Attributes are stored at ~0 index // Function Attributes are stored at ~0 index
return AttributeList.paramHasAttr(~0U, N); 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 // Function Attributes are stored at ~0 index
addAttribute(~0, N); addAttribute(~0, N);
} }