From: Kostya Serebryany Date: Fri, 21 Jun 2013 07:38:09 +0000 (+0000) Subject: add Function::removeFnAttr() X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e0026d00f90027a9f2b8ad6b6a2b48e36f808dbe;p=oota-llvm.git add Function::removeFnAttr() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184536 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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) {