[llvm-commits] [llvm] r173598 - Use the AttributeSet instead of AttributeWithIndex object.

Bill Wendling isanbard at gmail.com
Sat Jan 26 16:36:48 PST 2013


Author: void
Date: Sat Jan 26 18:36:48 2013
New Revision: 173598

URL: http://llvm.org/viewvc/llvm-project?rev=173598&view=rev
Log:
Use the AttributeSet instead of AttributeWithIndex object.

Modified:
    llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp

Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=173598&r1=173597&r2=173598&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Sat Jan 26 18:36:48 2013
@@ -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));





More information about the llvm-commits mailing list