summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-27 00:36:48 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-27 00:36:48 +0000
commit0c2f0ff9ccee3d711893b963b1dd8426beb7ddfe (patch)
treefb56bd4200063a26ab1e9427263fec3223a079c0 /lib/Bitcode/Reader
parentff715b240351dc2b8fba1be236d7a1746d2f0031 (diff)
downloadllvm-0c2f0ff9ccee3d711893b963b1dd8426beb7ddfe.tar.gz
llvm-0c2f0ff9ccee3d711893b963b1dd8426beb7ddfe.tar.bz2
llvm-0c2f0ff9ccee3d711893b963b1dd8426beb7ddfe.tar.xz
Use the AttributeSet instead of AttributeWithIndex object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp
index 4190161b62..2e1a5125fe 100644
--- a/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -437,7 +437,7 @@ bool BitcodeReader::ParseAttributeBlock() {
SmallVector<uint64_t, 64> Record;
- SmallVector<AttributeWithIndex, 8> Attrs;
+ SmallVector<AttributeSet, 8> Attrs;
// Read all the records.
while (1) {
@@ -472,8 +472,7 @@ bool BitcodeReader::ParseAttributeBlock() {
for (unsigned i = 0, e = Record.size(); i != e; i += 2) {
AttrBuilder B(Record[i+1]);
if (B.hasAttributes())
- Attrs.push_back(AttributeWithIndex::get(Record[i],
- Attribute::get(Context, B)));
+ Attrs.push_back(AttributeSet::get(Context, Record[i], B));
}
MAttributes.push_back(AttributeSet::get(Context, Attrs));