1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

[NFC] Make documentation for CallBase::hasFnAttr() more clear.

This commit is contained in:
Kevin P. Neal 2020-07-21 12:55:25 -04:00
parent c136b2bbc8
commit 9dff04c406

View File

@ -1393,14 +1393,18 @@ public:
///
void setAttributes(AttributeList A) { Attrs = A; }
/// Determine whether this call has the given attribute.
/// Determine whether this call has the given attribute. If it does not
/// then determine if the called function has the attribute, but only if
/// the attribute is allowed for the call.
bool hasFnAttr(Attribute::AttrKind Kind) const {
assert(Kind != Attribute::NoBuiltin &&
"Use CallBase::isNoBuiltin() to check for Attribute::NoBuiltin");
return hasFnAttrImpl(Kind);
}
/// Determine whether this call has the given attribute.
/// Determine whether this call has the given attribute. If it does not
/// then determine if the called function has the attribute, but only if
/// the attribute is allowed for the call.
bool hasFnAttr(StringRef Kind) const { return hasFnAttrImpl(Kind); }
/// adds the attribute to the list of attributes.