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 | 0c2f0ff9ccee3d711893b963b1dd8426beb7ddfe (patch) | |
tree | fb56bd4200063a26ab1e9427263fec3223a079c0 /lib | |
parent | ff715b240351dc2b8fba1be236d7a1746d2f0031 (diff) | |
download | external_llvm-0c2f0ff9ccee3d711893b963b1dd8426beb7ddfe.zip external_llvm-0c2f0ff9ccee3d711893b963b1dd8426beb7ddfe.tar.gz external_llvm-0c2f0ff9ccee3d711893b963b1dd8426beb7ddfe.tar.bz2 |
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')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 4190161..2e1a512 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)); |