switch AttrListPtr::get to take an ArrayRef, simplifying a lot of clients.

llvm-svn: 157556
This commit is contained in:
Chris Lattner
2012-05-28 01:47:44 +00:00
parent 5be972d8a2
commit 3cb6f83ebb
9 changed files with 43 additions and 57 deletions

View File

@@ -486,7 +486,7 @@ bool BitcodeReader::ParseAttributeBlock() {
Attributes(Record[i+1])));
}
MAttributes.push_back(AttrListPtr::get(Attrs.begin(), Attrs.end()));
MAttributes.push_back(AttrListPtr::get(Attrs));
Attrs.clear();
break;
}