mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 11:33:24 +02:00
[NFC] Make documentation for CallBase::hasFnAttr() more clear.
This commit is contained in:
parent
c136b2bbc8
commit
9dff04c406
@ -1393,14 +1393,18 @@ public:
|
|||||||
///
|
///
|
||||||
void setAttributes(AttributeList A) { Attrs = A; }
|
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 {
|
bool hasFnAttr(Attribute::AttrKind Kind) const {
|
||||||
assert(Kind != Attribute::NoBuiltin &&
|
assert(Kind != Attribute::NoBuiltin &&
|
||||||
"Use CallBase::isNoBuiltin() to check for Attribute::NoBuiltin");
|
"Use CallBase::isNoBuiltin() to check for Attribute::NoBuiltin");
|
||||||
return hasFnAttrImpl(Kind);
|
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); }
|
bool hasFnAttr(StringRef Kind) const { return hasFnAttrImpl(Kind); }
|
||||||
|
|
||||||
/// adds the attribute to the list of attributes.
|
/// adds the attribute to the list of attributes.
|
||||||
|
Loading…
Reference in New Issue
Block a user