diff options
| author | Bill Wendling <isanbard@gmail.com> | 2013-01-27 00:36:48 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2013-01-27 00:36:48 +0000 |
| commit | 71173cb7dcb53d22fdbf7a41f091d9642de422a6 (patch) | |
| tree | 028c923d66c0e412876a0ad4391d37206996ec34 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 38d96ab6f5306f714bb7eb34fe9a8eb84b80442a (diff) | |
| download | llvm-71173cb7dcb53d22fdbf7a41f091d9642de422a6.zip llvm-71173cb7dcb53d22fdbf7a41f091d9642de422a6.tar.gz llvm-71173cb7dcb53d22fdbf7a41f091d9642de422a6.tar.bz2 | |
Use the AttributeSet instead of AttributeWithIndex object.
llvm-svn: 173598
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 4190161..2e1a512 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/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)); |
