Update llvm-gcc-4.2 and dragonegg after converting ConstantFolder APIs

to use ArrayRef.

llvm-svn: 135672
This commit is contained in:
Jay Foad 2011-07-21 09:19:11 +00:00
parent 32351fa820
commit 95f1ebd41b
1 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,12 @@ public:
return Fold(ConstantExpr::getInBoundsGetElementPtr(C, IdxList.data(),
IdxList.size()));
}
Constant *CreateInBoundsGetElementPtr(Constant *C, Constant *Idx) const {
// This form of the function only exists to avoid ambiguous overload
// warnings about whether to convert Idx to ArrayRef<Constant *> or
// ArrayRef<Value *>.
return Fold(ConstantExpr::getInBoundsGetElementPtr(C, &Idx, 1));
}
Constant *CreateInBoundsGetElementPtr(Constant *C,
ArrayRef<Value *> IdxList) const {
return Fold(ConstantExpr::getInBoundsGetElementPtr(C, IdxList.data(),