Remove a use of AttributeWithIndex.
authorBill Wendling <isanbard@gmail.com>
Mon, 28 Jan 2013 00:21:34 +0000 (00:21 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 28 Jan 2013 00:21:34 +0000 (00:21 +0000)
commit9eb689cf1c1c839a8dcd4afa54e66c45b070e6ae
tree465a06ad0706751c2d02aa48bc6b8ee0805f201d
parentad6217c76f37bf6333bf6a5b35c241bc8e004a79
Remove a use of AttributeWithIndex.

We want to remove AttributeWithIndex because it provides a non-encapsulated view
of the AttributeSetImpl object. Instead, use accessor methods and iterators.

Eventually, this code can be simplified because the Attribute object will hold
only one attribute instead of multiple attributes.

llvm-svn: 173641
llvm/lib/IR/AttributeImpl.h
llvm/lib/IR/Attributes.cpp