Return ConstantVector to 2.5 API.

llvm-svn: 77366
This commit is contained in:
Owen Anderson
2009-07-28 21:19:26 +00:00
parent 019f414261
commit 4aa3295a65
21 changed files with 122 additions and 138 deletions

View File

@@ -101,7 +101,7 @@ Value *llvm::MapValue(const Value *V, ValueMapTy &VM, LLVMContext &Context) {
Values.push_back(cast<Constant>(MV));
for (++i; i != e; ++i)
Values.push_back(cast<Constant>(MapValue(*i, VM, Context)));
return VM[V] = Context.getConstantVector(Values);
return VM[V] = ConstantVector::get(Values);
}
}
return VM[V] = C;