summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/IR/Function.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/Function.h b/llvm/include/llvm/IR/Function.h
index f97929f6585..06455393d0c 100644
--- a/llvm/include/llvm/IR/Function.h
+++ b/llvm/include/llvm/IR/Function.h
@@ -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) {
OpenPOWER on IntegriCloud