add Function::removeFnAttr()

llvm-svn: 184536
This commit is contained in:
Kostya Serebryany 2013-06-21 07:38:09 +00:00
parent a192ea204b
commit 8dba9fb1a2
1 changed files with 7 additions and 0 deletions

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