summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/ConstantFolder.h
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-13 10:26:04 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-13 10:26:04 +0000
commit57aa63679434eaead4457308038331e685cef817 (patch)
treed7b9cfc6a95acb406217829eed59d7569787afe0 /llvm/include/llvm/Support/ConstantFolder.h
parent00e887b96f54e95af26e0aade6fbdaf68eab0143 (diff)
downloadbcm5719-llvm-57aa63679434eaead4457308038331e685cef817.tar.gz
bcm5719-llvm-57aa63679434eaead4457308038331e685cef817.zip
Convert InsertValueInst and ExtractValueInst APIs to use ArrayRef.
llvm-svn: 135040
Diffstat (limited to 'llvm/include/llvm/Support/ConstantFolder.h')
-rw-r--r--llvm/include/llvm/Support/ConstantFolder.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/Support/ConstantFolder.h b/llvm/include/llvm/Support/ConstantFolder.h
index d0eaa3e487d..733023566a6 100644
--- a/llvm/include/llvm/Support/ConstantFolder.h
+++ b/llvm/include/llvm/Support/ConstantFolder.h
@@ -210,14 +210,14 @@ public:
return ConstantExpr::getShuffleVector(V1, V2, Mask);
}
- Constant *CreateExtractValue(Constant *Agg, const unsigned *IdxList,
- unsigned NumIdx) const {
- return ConstantExpr::getExtractValue(Agg, IdxList, NumIdx);
+ Constant *CreateExtractValue(Constant *Agg,
+ ArrayRef<unsigned> IdxList) const {
+ return ConstantExpr::getExtractValue(Agg, IdxList);
}
Constant *CreateInsertValue(Constant *Agg, Constant *Val,
- const unsigned *IdxList, unsigned NumIdx) const {
- return ConstantExpr::getInsertValue(Agg, Val, IdxList, NumIdx);
+ ArrayRef<unsigned> IdxList) const {
+ return ConstantExpr::getInsertValue(Agg, Val, IdxList);
}
};
OpenPOWER on IntegriCloud