Switch ConstantVector::get to use ArrayRef instead of a pointer+size

idiom.  Change various clients to simplify their code.

llvm-svn: 125487
This commit is contained in:
Chris Lattner
2011-02-14 07:55:32 +00:00
parent e654a096a4
commit d9f5b88548
13 changed files with 99 additions and 180 deletions

View File

@@ -298,7 +298,7 @@ void BitcodeReaderValueList::ResolveConstantForwardRefs() {
NewC = ConstantStruct::get(Context, &NewOps[0], NewOps.size(),
UserCS->getType()->isPacked());
} else if (isa<ConstantVector>(UserC)) {
NewC = ConstantVector::get(&NewOps[0], NewOps.size());
NewC = ConstantVector::get(NewOps);
} else {
assert(isa<ConstantExpr>(UserC) && "Must be a ConstantExpr.");
NewC = cast<ConstantExpr>(UserC)->getWithOperands(&NewOps[0],