summaryrefslogtreecommitdiff
path: root/include/llvm/IR
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-06-21 07:38:09 +0000
committerKostya Serebryany <kcc@google.com>2013-06-21 07:38:09 +0000
commite0026d00f90027a9f2b8ad6b6a2b48e36f808dbe (patch)
tree517973c9f9a159391ed54330a49c853be842d32f /include/llvm/IR
parentbc735ecbbca58a7c7bd719ad3d42270d0900745f (diff)
downloadllvm-e0026d00f90027a9f2b8ad6b6a2b48e36f808dbe.tar.gz
llvm-e0026d00f90027a9f2b8ad6b6a2b48e36f808dbe.tar.bz2
llvm-e0026d00f90027a9f2b8ad6b6a2b48e36f808dbe.tar.xz
add Function::removeFnAttr()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR')
-rw-r--r--include/llvm/IR/Function.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/IR/Function.h b/include/llvm/IR/Function.h
index f97929f658..06455393d0 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) {