diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-30 23:03:37 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-30 23:03:37 +0000 |
commit | b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526 (patch) | |
tree | 4847eb648a3d471bdd4b7653a8f83ad5cb4224bd /llvm/lib/VMCore/LLVMContext.cpp | |
parent | 5ac2f49516d8624d998873dbd322e22f0ee5f358 (diff) | |
download | bcm5719-llvm-b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526.tar.gz bcm5719-llvm-b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526.zip |
Move more code back to 2.5 APIs.
llvm-svn: 77635
Diffstat (limited to 'llvm/lib/VMCore/LLVMContext.cpp')
-rw-r--r-- | llvm/lib/VMCore/LLVMContext.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/llvm/lib/VMCore/LLVMContext.cpp b/llvm/lib/VMCore/LLVMContext.cpp index 8bd45b2954d..23c73c5fd5d 100644 --- a/llvm/lib/VMCore/LLVMContext.cpp +++ b/llvm/lib/VMCore/LLVMContext.cpp @@ -52,11 +52,11 @@ Constant* LLVMContext::getNullValue(const Type* Ty) { case Type::PPC_FP128TyID: return ConstantFP::get(Ty->getContext(), APFloat(APInt(128, 2, zero))); case Type::PointerTyID: - return getConstantPointerNull(cast<PointerType>(Ty)); + return ConstantPointerNull::get(cast<PointerType>(Ty)); case Type::StructTyID: case Type::ArrayTyID: case Type::VectorTyID: - return getConstantAggregateZero(Ty); + return ConstantAggregateZero::get(Ty); default: // Function, Label, or Opaque type? assert(!"Cannot create a null constant of that type!"); @@ -75,11 +75,6 @@ Constant* LLVMContext::getAllOnesValue(const Type* Ty) { return cast<ConstantVector>(ConstantVector::get(Elts)); } -// UndefValue accessors. -UndefValue* LLVMContext::getUndef(const Type* Ty) { - return UndefValue::get(Ty); -} - // ConstantInt accessors. ConstantInt* LLVMContext::getTrue() { assert(this && "Context not initialized!"); @@ -93,16 +88,6 @@ ConstantInt* LLVMContext::getFalse() { return pImpl->getFalse(); } -// ConstantPointerNull accessors. -ConstantPointerNull* LLVMContext::getConstantPointerNull(const PointerType* T) { - return ConstantPointerNull::get(T); -} - -// ConstantAggregateZero accessors. -ConstantAggregateZero* LLVMContext::getConstantAggregateZero(const Type* Ty) { - return pImpl->getConstantAggregateZero(Ty); -} - // MDNode accessors MDNode* LLVMContext::getMDNode(Value* const* Vals, unsigned NumVals) { return pImpl->getMDNode(Vals, NumVals); @@ -120,7 +105,3 @@ void LLVMContext::erase(MDString *M) { void LLVMContext::erase(MDNode *M) { pImpl->erase(M); } - -void LLVMContext::erase(ConstantAggregateZero *Z) { - pImpl->erase(Z); -} |