diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-28 21:19:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-28 21:19:26 +0000 |
commit | af7ec975870f92245f1f1484ac80a1e2db6a0afa (patch) | |
tree | b00e71c30dafeea2c63c1b512c0d858e621870fa /include/llvm/Constants.h | |
parent | e7c329bf4b48ba3a4539183dc2d0804db6f4042a (diff) | |
download | llvm-af7ec975870f92245f1f1484ac80a1e2db6a0afa.tar.gz llvm-af7ec975870f92245f1f1484ac80a1e2db6a0afa.tar.bz2 llvm-af7ec975870f92245f1f1484ac80a1e2db6a0afa.tar.xz |
Return ConstantVector to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r-- | include/llvm/Constants.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 442472acb3..a3bd551790 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -448,6 +448,11 @@ class ConstantVector : public Constant { protected: ConstantVector(const VectorType *T, const std::vector<Constant*> &Val); public: + // ConstantVector accessors + static Constant* get(const VectorType* T, const std::vector<Constant*>& V); + static Constant* get(const std::vector<Constant*>& V); + static Constant* get(Constant* const* Vals, unsigned NumVals); + /// Transparently provide more efficient getOperand methods. DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant); |