mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 19:35:54 +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:
parent
bc735ecbbc
commit
e0026d00f9
@ -181,6 +181,13 @@ public:
|
|||||||
AttributeSet::FunctionIndex, N));
|
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.
|
/// addFnAttr - Add function attributes to this function.
|
||||||
///
|
///
|
||||||
void addFnAttr(StringRef Kind) {
|
void addFnAttr(StringRef Kind) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user