diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-06-22 09:24:39 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-06-22 09:24:39 +0000 |
commit | 267010864e139781ef5949939e081c41f954de0a (patch) | |
tree | a70c0e226a9540d345c8da8c97e59e402b8e873a /include | |
parent | a0c138429e101f573d43740322245c1d5b8b04a0 (diff) |
Replace the existing forms of ConstantArray::get() with a single form
that takes an ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Constants.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index aa3096022b..ff599512e6 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -350,9 +350,7 @@ protected: ConstantArray(const ArrayType *T, const std::vector<Constant*> &Val); public: // ConstantArray accessors - static Constant *get(const ArrayType *T, const std::vector<Constant*> &V); - static Constant *get(const ArrayType *T, Constant *const *Vals, - unsigned NumVals); + static Constant *get(const ArrayType *T, ArrayRef<Constant*> V); /// This method constructs a ConstantArray and initializes it with a text /// string. The default behavior (AddNull==true) causes a null terminator to |