mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Use the AttributeSet instead of AttributeWithIndex object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff715b2403
commit
0c2f0ff9cc
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user