summaryrefslogtreecommitdiff
path: root/include/llvm/Attributes.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-19 09:15:11 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-19 09:15:11 +0000
commit6424a783add6f00e5a8e5ddbe0289dfe3e271c8b (patch)
tree3c96dd267ae6abd5ee69a944b9dff0bff23435cc /include/llvm/Attributes.h
parent5d122b6ec0767a543f797fafc77c1ad8e018b08b (diff)
downloadllvm-6424a783add6f00e5a8e5ddbe0289dfe3e271c8b.tar.gz
llvm-6424a783add6f00e5a8e5ddbe0289dfe3e271c8b.tar.bz2
llvm-6424a783add6f00e5a8e5ddbe0289dfe3e271c8b.tar.xz
Inline hasFunctionOnlyAttrs into its only use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Attributes.h')
-rw-r--r--include/llvm/Attributes.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h
index dff4819023..a6297e0f7f 100644
--- a/include/llvm/Attributes.h
+++ b/include/llvm/Attributes.h
@@ -117,30 +117,6 @@ public:
/// alignment value.
unsigned getStackAlignment() const;
- /// \brief Attribute that may be applied to the function itself. These cannot
- /// be used on return values or function parameters.
- bool hasFunctionOnlyAttrs() const {
- return hasAttribute(Attribute::NoReturn) ||
- hasAttribute(Attribute::NoUnwind) ||
- hasAttribute(Attribute::ReadNone) ||
- hasAttribute(Attribute::ReadOnly) ||
- hasAttribute(Attribute::NoInline) ||
- hasAttribute(Attribute::AlwaysInline) ||
- hasAttribute(Attribute::OptimizeForSize) ||
- hasAttribute(Attribute::StackProtect) ||
- hasAttribute(Attribute::StackProtectReq) ||
- hasAttribute(Attribute::NoRedZone) ||
- hasAttribute(Attribute::NoImplicitFloat) ||
- hasAttribute(Attribute::Naked) ||
- hasAttribute(Attribute::InlineHint) ||
- hasAttribute(Attribute::StackAlignment) ||
- hasAttribute(Attribute::UWTable) ||
- hasAttribute(Attribute::NonLazyBind) ||
- hasAttribute(Attribute::ReturnsTwice) ||
- hasAttribute(Attribute::AddressSafety) ||
- hasAttribute(Attribute::MinSize);
- }
-
bool operator==(const Attribute &A) const {
return Attrs == A.Attrs;
}