forked from OSchip/llvm-project
Use the AttributeSet instead of AttributeWithIndex object.
llvm-svn: 173598
This commit is contained in:
parent
38d96ab6f5
commit
71173cb7dc
|
@ -437,7 +437,7 @@ bool BitcodeReader::ParseAttributeBlock() {
|
||||||
|
|
||||||
SmallVector<uint64_t, 64> Record;
|
SmallVector<uint64_t, 64> Record;
|
||||||
|
|
||||||
SmallVector<AttributeWithIndex, 8> Attrs;
|
SmallVector<AttributeSet, 8> Attrs;
|
||||||
|
|
||||||
// Read all the records.
|
// Read all the records.
|
||||||
while (1) {
|
while (1) {
|
||||||
|
@ -472,8 +472,7 @@ bool BitcodeReader::ParseAttributeBlock() {
|
||||||
for (unsigned i = 0, e = Record.size(); i != e; i += 2) {
|
for (unsigned i = 0, e = Record.size(); i != e; i += 2) {
|
||||||
AttrBuilder B(Record[i+1]);
|
AttrBuilder B(Record[i+1]);
|
||||||
if (B.hasAttributes())
|
if (B.hasAttributes())
|
||||||
Attrs.push_back(AttributeWithIndex::get(Record[i],
|
Attrs.push_back(AttributeSet::get(Context, Record[i], B));
|
||||||
Attribute::get(Context, B)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MAttributes.push_back(AttributeSet::get(Context, Attrs));
|
MAttributes.push_back(AttributeSet::get(Context, Attrs));
|
||||||
|
|
Loading…
Reference in New Issue