summaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
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
commit166579e287a38d907acafc24243146e9f3ee9799 (patch)
treeefa2a0c6d258a431bc5ed6b9a9f7e9ff74c45658 /include/llvm/Constants.h
parenta9203109f4ac95aa7e9624f2838e3d89623ec902 (diff)
downloadllvm-166579e287a38d907acafc24243146e9f3ee9799.tar.gz
llvm-166579e287a38d907acafc24243146e9f3ee9799.tar.bz2
llvm-166579e287a38d907acafc24243146e9f3ee9799.tar.xz
Use ArrayRef in the (protected) constructors of ConstantArray, ConstantStruct and ConstantVector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 20ed1344db..e011c56956 100644
--- a/include/llvm/Constants.h
+++ b/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);