diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-15 21:51:10 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-15 21:51:10 +0000 |
commit | a90b3dc2f1f70ab7102ec3f1fc57f199fd56d7cc (patch) | |
tree | b54a5c3b507d9f5e051bdbdd587c6c6732ac837c /lib/VMCore/Constants.cpp | |
parent | 7add5ff1d1257f6f09e66be42d459610f4693d68 (diff) |
Move a few more convenience factory functions from Constant to LLVMContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Constants.cpp')
-rw-r--r-- | lib/VMCore/Constants.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index b123f85931..49dd6a06d8 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -1434,11 +1434,6 @@ Constant *ConstantVector::get(const VectorType *Ty, return VectorConstants->getOrCreate(Ty, V); } -Constant *ConstantVector::get(const std::vector<Constant*> &V) { - assert(!V.empty() && "Cannot infer type if V is empty"); - return get(VectorType::get(V.front()->getType(),V.size()), V); -} - // destroyConstant - Remove the constant from the constant table... // void ConstantVector::destroyConstant() { |