aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-09 21:49:51 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-09 21:49:51 +0000
commit2fa8af224ea026f9432e833fd6f42a216423a010 (patch)
treeaa3b613bc1dae40772ada954b482dc88c3f5067b /include/llvm/Support
parent3e2d76c946ba753c2b11af192a52e25b6f9b46ff (diff)
Use the attribute enums to query if a function has an attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/CallSite.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h
index c15326ee95..1b25897646 100644
--- a/include/llvm/Support/CallSite.h
+++ b/include/llvm/Support/CallSite.h
@@ -185,29 +185,8 @@ public:
}
/// \brief Return true if this function has the given attribute.
- bool fnHasNoAliasAttr() const {
- CALLSITE_DELEGATE_GETTER(fnHasNoAliasAttr());
- }
- bool fnHasNoInlineAttr() const {
- CALLSITE_DELEGATE_GETTER(fnHasNoInlineAttr());
- }
- bool fnHasNoReturnAttr() const {
- CALLSITE_DELEGATE_GETTER(fnHasNoReturnAttr());
- }
- bool fnHasNoUnwindAttr() const {
- CALLSITE_DELEGATE_GETTER(fnHasNoUnwindAttr());
- }
- bool fnHasReadNoneAttr() const {
- CALLSITE_DELEGATE_GETTER(fnHasReadNoneAttr());
- }
- bool fnHasReadOnlyAttr() const {
- CALLSITE_DELEGATE_GETTER(fnHasReadOnlyAttr());
- }
- bool fnHasReturnsTwiceAttr() const {
- CALLSITE_DELEGATE_GETTER(fnHasReturnsTwiceAttr());
- }
- bool hasFnAttr(Attributes N) const {
- CALLSITE_DELEGATE_GETTER(hasFnAttr(N));
+ bool hasFnAttr(Attributes::AttrVal A) const {
+ CALLSITE_DELEGATE_GETTER(hasFnAttr(A));
}
/// \brief Return true if the call or the callee has the given attribute.