diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-27 22:29:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-27 22:29:26 +0000 |
commit | 45308b578b5eae549e5661d65f73a77d673755bd (patch) | |
tree | 378dfd215a15edca2cedd8c0b3b1e876bbc79426 /llvm/lib/VMCore/LLVMContext.cpp | |
parent | 31d9254f7a09091996595a76d58cf487eda575b7 (diff) | |
download | bcm5719-llvm-45308b578b5eae549e5661d65f73a77d673755bd.tar.gz bcm5719-llvm-45308b578b5eae549e5661d65f73a77d673755bd.zip |
Move ConstantStruct back to 2.5 API.
llvm-svn: 77266
Diffstat (limited to 'llvm/lib/VMCore/LLVMContext.cpp')
-rw-r--r-- | llvm/lib/VMCore/LLVMContext.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/llvm/lib/VMCore/LLVMContext.cpp b/llvm/lib/VMCore/LLVMContext.cpp index 722e29ee5dc..340ca9557a2 100644 --- a/llvm/lib/VMCore/LLVMContext.cpp +++ b/llvm/lib/VMCore/LLVMContext.cpp @@ -98,29 +98,6 @@ ConstantPointerNull* LLVMContext::getConstantPointerNull(const PointerType* T) { return ConstantPointerNull::get(T); } - -// ConstantStruct accessors. -Constant* LLVMContext::getConstantStruct(const StructType* T, - const std::vector<Constant*>& V) { - return pImpl->getConstantStruct(T, V); -} - -Constant* LLVMContext::getConstantStruct(const std::vector<Constant*>& V, - bool packed) { - std::vector<const Type*> StructEls; - StructEls.reserve(V.size()); - for (unsigned i = 0, e = V.size(); i != e; ++i) - StructEls.push_back(V[i]->getType()); - return getConstantStruct(getStructType(StructEls, packed), V); -} - -Constant* LLVMContext::getConstantStruct(Constant* const *Vals, - unsigned NumVals, bool Packed) { - // FIXME: make this the primary ctor method. - return getConstantStruct(std::vector<Constant*>(Vals, Vals+NumVals), Packed); -} - - // ConstantAggregateZero accessors. ConstantAggregateZero* LLVMContext::getConstantAggregateZero(const Type* Ty) { return pImpl->getConstantAggregateZero(Ty); @@ -552,10 +529,6 @@ void LLVMContext::erase(ConstantArray *C) { pImpl->erase(C); } -void LLVMContext::erase(ConstantStruct *S) { - pImpl->erase(S); -} - void LLVMContext::erase(ConstantVector *V) { pImpl->erase(V); } @@ -564,8 +537,3 @@ Constant *LLVMContext::replaceUsesOfWithOnConstant(ConstantArray *CA, Value *From, Value *To, Use *U) { return pImpl->replaceUsesOfWithOnConstant(CA, From, To, U); } - -Constant *LLVMContext::replaceUsesOfWithOnConstant(ConstantStruct *CS, - Value *From, Value *To, Use *U) { - return pImpl->replaceUsesOfWithOnConstant(CS, From, To, U); -} |