diff options
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 19ff2bf..3beda6e 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -149,16 +149,16 @@ public: void setAttributes(const AttrListPtr &attrs) { AttributeList = attrs; } - /// hasNote - Return true if this function has given note. - bool hasNote(Attributes N) const { - // Notes are stored at ~0 index in parameter attribute list - return (paramHasAttr(~0, N)); + /// hasFnAttr - Return true if this function has given attribute. + bool hasFnAttr(Attributes N) const { + // Function Attributes are stored at ~0 index + return AttributeList.paramHasAttr(~0U, N); } - /// setNotes - Set notes for this function + /// addFnAttr - Add function attributes /// - void setNotes(const Attributes N) { - // Notes are stored at ~0 index in parameter attribute list + void addFnAttr(const Attributes N) { + // Function Attributes are stored at ~0 index addAttribute(~0, N); } |