diff options
-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) { |