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 | 8dba9fb1a209eadb0bcc1a3cf487b2ee49d0ae38 (patch) | |
tree | ca14452e603112101b1cdfaec04e10f75f6eda3a | |
parent | a192ea204b5b2164edb1aaf183bfaf2d1f548a02 (diff) | |
download | bcm5719-llvm-8dba9fb1a209eadb0bcc1a3cf487b2ee49d0ae38.tar.gz bcm5719-llvm-8dba9fb1a209eadb0bcc1a3cf487b2ee49d0ae38.zip |
add Function::removeFnAttr()
llvm-svn: 184536
-rw-r--r-- | llvm/include/llvm/IR/Function.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/Function.h b/llvm/include/llvm/IR/Function.h index f97929f6585..06455393d0c 100644 --- a/llvm/include/llvm/IR/Function.h +++ b/llvm/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) { |