diff options
author | Kostya Serebryany <kcc@google.com> | 2013-06-21 07:38:09 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-06-21 07:38:09 +0000 |
commit | e0026d00f90027a9f2b8ad6b6a2b48e36f808dbe (patch) | |
tree | 517973c9f9a159391ed54330a49c853be842d32f /include/llvm/IR | |
parent | bc735ecbbca58a7c7bd719ad3d42270d0900745f (diff) | |
download | llvm-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.h | 7 |
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) { |