add Function::removeFnAttr()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184536 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kostya Serebryany 2013-06-21 07:38:09 +00:00
parent bc735ecbbc
commit e0026d00f9

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) {