summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Constants.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-15 21:51:10 +0000
committerOwen Anderson <resistor@mac.com>2009-07-15 21:51:10 +0000
commitf945a9ed07773d9f2f9d631d7540b18f8ebccb04 (patch)
treebe301ffe0d5fba090f05d008ffcb2bef131b2ebc /llvm/lib/VMCore/Constants.cpp
parentd098c5a0fc9273fda89a50c4fc4bc4210ffb947d (diff)
downloadbcm5719-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.cpp5
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() {
OpenPOWER on IntegriCloud