Rewrite the addAttr() method.
authorBill Wendling <isanbard@gmail.com>
Mon, 28 Jan 2013 05:23:28 +0000 (05:23 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 28 Jan 2013 05:23:28 +0000 (05:23 +0000)
commit49f6060f16aec4024d644a6ec4ddd3de9b3e8821
tree9eb437c836037b61b3c006bee17f556e2131518b
parent53ff78b2019e96e142986d19dd99f8dd563dc494
Rewrite the addAttr() 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. And then adds the rest of the subsets.

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