From 89d9b81a3a7802fcf04770d8129477a8e2dd8d85 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Mon, 25 Jul 2011 10:14:44 +0000 Subject: Use ArrayRef in the (protected) constructors of ConstantArray, ConstantStruct and ConstantVector. llvm-svn: 135905 --- llvm/include/llvm/Constants.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/include') 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 >; ConstantArray(const ConstantArray &); // DO NOT IMPLEMENT protected: - ConstantArray(ArrayType *T, const std::vector &Val); + ConstantArray(ArrayType *T, ArrayRef Val); public: // ConstantArray accessors static Constant *get(ArrayType *T, ArrayRef V); @@ -400,7 +400,7 @@ class ConstantStruct : public Constant { std::vector >; ConstantStruct(const ConstantStruct &); // DO NOT IMPLEMENT protected: - ConstantStruct(StructType *T, const std::vector &Val); + ConstantStruct(StructType *T, ArrayRef Val); public: // ConstantStruct accessors static Constant *get(StructType *T, ArrayRef V); @@ -461,7 +461,7 @@ class ConstantVector : public Constant { std::vector >; ConstantVector(const ConstantVector &); // DO NOT IMPLEMENT protected: - ConstantVector(VectorType *T, const std::vector &Val); + ConstantVector(VectorType *T, ArrayRef Val); public: // ConstantVector accessors static Constant *get(ArrayRef V); -- cgit v1.2.3