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 | |
| parent | bc735ecbbca58a7c7bd719ad3d42270d0900745f (diff) | |
| download | external_llvm-e0026d00f90027a9f2b8ad6b6a2b48e36f808dbe.zip external_llvm-e0026d00f90027a9f2b8ad6b6a2b48e36f808dbe.tar.gz external_llvm-e0026d00f90027a9f2b8ad6b6a2b48e36f808dbe.tar.bz2 | |
add Function::removeFnAttr()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184536 91177308-0d34-0410-b5e6-96231b3b80d8
| -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 f97929f..0645539 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) { |
