From e0026d00f90027a9f2b8ad6b6a2b48e36f808dbe Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 21 Jun 2013 07:38:09 +0000 Subject: [PATCH] add Function::removeFnAttr() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184536 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Function.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/llvm/IR/Function.h b/include/llvm/IR/Function.h index f97929f6585..06455393d0c 100644 --- a/include/llvm/IR/Function.h +++ b/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) { -- 2.34.1