1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

add Function::removeFnAttr()

llvm-svn: 184536
This commit is contained in:
Kostya Serebryany 2013-06-21 07:38:09 +00:00
parent 02e80d4ff5
commit 874b298dbc

View File

@ -181,6 +181,13 @@ public:
AttributeSet::FunctionIndex, N));
}
/// removeFnAttr - Remove function attributes from this function.
///
void removeFnAttr(Attribute::AttrKind N) {
setAttributes(AttributeSets.removeAttribute(
getContext(), AttributeSet::FunctionIndex, N));
}
/// addFnAttr - Add function attributes to this function.
///
void addFnAttr(StringRef Kind) {