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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157556 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2012-05-28 01:47:44 +00:00
parent 2a9d3b79db
commit d509d0b532
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;
}