1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-02-20 14:29:27 +00:00

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

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