aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-08-13 11:09:18 -0700
committerArthur Eubanks <aeubanks@google.com>2021-08-13 11:09:18 -0700
commit92ce6db9ee7666a347fccf0f72ba3225b199d6d1 (patch)
tree8260b80c3ced3ea313070d1fa9eb7f60bb3fdb6e /llvm/lib/IR/Attributes.cpp
parenta0c42ca56c2ea14c53f7bebcd9b53c4dfe4152e2 (diff)
downloadllvm-92ce6db9ee7666a347fccf0f72ba3225b199d6d1.zip
llvm-92ce6db9ee7666a347fccf0f72ba3225b199d6d1.tar.gz
llvm-92ce6db9ee7666a347fccf0f72ba3225b199d6d1.tar.bz2
[NFC] Rename AttributeList::hasFnAttribute() -> hasFnAttr()
This is more consistent with similar methods.
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index ea71472..59c0ced 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -1397,11 +1397,11 @@ bool AttributeList::hasAttributes(unsigned Index) const {
return getAttributes(Index).hasAttributes();
}
-bool AttributeList::hasFnAttribute(Attribute::AttrKind Kind) const {
+bool AttributeList::hasFnAttr(Attribute::AttrKind Kind) const {
return pImpl && pImpl->hasFnAttribute(Kind);
}
-bool AttributeList::hasFnAttribute(StringRef Kind) const {
+bool AttributeList::hasFnAttr(StringRef Kind) const {
return hasAttribute(AttributeList::FunctionIndex, Kind);
}