summaryrefslogtreecommitdiff
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-26 23:51:19 +0000
committerDevang Patel <dpatel@apple.com>2008-09-26 23:51:19 +0000
commit2c9c3e73682749016d5885b67ff719f634b37d58 (patch)
treeee745b3e5a1a68cb4e954c3fdfe482b355be0d8f /include/llvm/Function.h
parente7261863c56240a55c6f57062f0e1e028dc27dba (diff)
downloadllvm-2c9c3e73682749016d5885b67ff719f634b37d58.tar.gz
llvm-2c9c3e73682749016d5885b67ff719f634b37d58.tar.bz2
llvm-2c9c3e73682749016d5885b67ff719f634b37d58.tar.xz
Implement function notes as function attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56716 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 19ff2bf4da..3beda6e289 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);
}