diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-23 23:52:03 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-23 23:52:03 +0000 |
commit | dd4924c564c7a661b78b604ebf16dfef7aa62b35 (patch) | |
tree | 91399d16f221cab6db12715eb6e52dc27f7e37c8 /include/llvm/Function.h | |
parent | 06117b65984487169cfd80c8349baf603d1879d5 (diff) |
Move FN_NOTE_AlwaysInline and other out of ParamAttrs namespace.
Do not check isDeclaration() in hasNote(). It is clients' responsibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index b800909423..7a39f92282 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -152,7 +152,7 @@ public: /// 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 (!isDeclaration() && paramHasAttr(~0, N)); + return (paramHasAttr(~0, N)); } /// setNotes - Set notes for this function |