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)
commit1aa9d9e260d5579c6372af102a00205ddda2a1e3
treecc626f8e9a6b35e2ca137c5b79e1bce31b949e9c
parent1d3e3d70adae1f37c750ea8f8f61cca178186aff
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.

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