summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-25 10:14:44 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-25 10:14:44 +0000
commit89d9b81a3a7802fcf04770d8129477a8e2dd8d85 (patch)
tree2b22e30702adfb418e1ce1582d1c9f207b20d858 /llvm/include
parentd1b7849d49d968a6f5398eb5534a763d42be97b8 (diff)
downloadbcm5719-llvm-89d9b81a3a7802fcf04770d8129477a8e2dd8d85.tar.gz
bcm5719-llvm-89d9b81a3a7802fcf04770d8129477a8e2dd8d85.zip
Use ArrayRef in the (protected) constructors of ConstantArray, ConstantStruct and ConstantVector.
llvm-svn: 135905
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Constants.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Constants.h b/llvm/include/llvm/Constants.h
index 20ed1344dbf..e011c56956a 100644
--- a/llvm/include/llvm/Constants.h
+++ b/llvm/include/llvm/Constants.h
@@ -329,7 +329,7 @@ class ConstantArray : public Constant {
std::vector<Constant*> >;
ConstantArray(const ConstantArray &); // DO NOT IMPLEMENT
protected:
- ConstantArray(ArrayType *T, const std::vector<Constant*> &Val);
+ ConstantArray(ArrayType *T, ArrayRef<Constant *> Val);
public:
// ConstantArray accessors
static Constant *get(ArrayType *T, ArrayRef<Constant*> V);
@@ -400,7 +400,7 @@ class ConstantStruct : public Constant {
std::vector<Constant*> >;
ConstantStruct(const ConstantStruct &); // DO NOT IMPLEMENT
protected:
- ConstantStruct(StructType *T, const std::vector<Constant*> &Val);
+ ConstantStruct(StructType *T, ArrayRef<Constant *> Val);
public:
// ConstantStruct accessors
static Constant *get(StructType *T, ArrayRef<Constant*> V);
@@ -461,7 +461,7 @@ class ConstantVector : public Constant {
std::vector<Constant*> >;
ConstantVector(const ConstantVector &); // DO NOT IMPLEMENT
protected:
- ConstantVector(VectorType *T, const std::vector<Constant*> &Val);
+ ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
public:
// ConstantVector accessors
static Constant *get(ArrayRef<Constant*> V);
OpenPOWER on IntegriCloud