Add remove method to operate on AttrBuilder instead of AttributeSet.
authorPete Cooper <peter_cooper@apple.com>
Wed, 6 May 2015 23:19:43 +0000 (23:19 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 6 May 2015 23:19:43 +0000 (23:19 +0000)
commitc58f23eeb64a19b588df17bae00419ceb1d92ce7
tree5c28c902e7cd8737a24a9b1b427f20bc05c50199
parent406a47c17fa332c38cc8506e82876f2246ae88f7
Add remove method to operate on AttrBuilder instead of AttributeSet.

Prior to this change we would have to construct a temporary AttributeSet (which isn't temporary at all given that its allocated on the context), just to contain the attributes in the builder, then call remove on that.

Now we can just remove any attributes from the (lightweight and really temporary) builder itself.

Will be used in a future commit to remove some temporary attributes sets.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236666 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Attributes.h
lib/IR/Attributes.cpp