Rewrite the removeAttr() method.
authorBill Wendling <isanbard@gmail.com>
Mon, 28 Jan 2013 05:44:14 +0000 (05:44 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 28 Jan 2013 05:44:14 +0000 (05:44 +0000)
commit8e31efdbbfe49bace5eca17f9971367d30a1f90f
tree15a2d073d1931bd78572e054983228147dc76929
parent1aa9d9e260d5579c6372af102a00205ddda2a1e3
Rewrite the removeAttr() method.

This now uses the AttributeSet object instead of the Attribute /
AttributeWithIndex objects. It's fairly simple now. It goes through all of the
subsets before the one we're modifying, adds them to the new set. It then adds
the modified subset (with the requested attributes removed). And then adds the
rest of the subsets.

llvm-svn: 173660
llvm/include/llvm/IR/Attributes.h
llvm/lib/IR/Attributes.cpp