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 | f945a9ed07773d9f2f9d631d7540b18f8ebccb04 (patch) | |
tree | be301ffe0d5fba090f05d008ffcb2bef131b2ebc /llvm/lib/VMCore/Constants.cpp | |
parent | d098c5a0fc9273fda89a50c4fc4bc4210ffb947d (diff) | |
download | bcm5719-llvm-f945a9ed07773d9f2f9d631d7540b18f8ebccb04.tar.gz bcm5719-llvm-f945a9ed07773d9f2f9d631d7540b18f8ebccb04.zip |
Move a few more convenience factory functions from Constant to LLVMContext.
llvm-svn: 75840
Diffstat (limited to 'llvm/lib/VMCore/Constants.cpp')
-rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index b123f85931b..49dd6a06d8a 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/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() { |