From b99ecca4954cbc3fbff77ffb252952cc19c4d799 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 30 Jul 2009 23:03:37 +0000 Subject: Move more code back to 2.5 APIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77635 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/LLVMContextImpl.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/VMCore/LLVMContextImpl.h') diff --git a/lib/VMCore/LLVMContextImpl.h b/lib/VMCore/LLVMContextImpl.h index c092603..f2cdcf4 100644 --- a/lib/VMCore/LLVMContextImpl.h +++ b/lib/VMCore/LLVMContextImpl.h @@ -74,7 +74,7 @@ template<> struct ConvertConstantType { static void convert(ConstantAggregateZero *OldC, const Type *NewTy) { // Make everyone now use a constant of the new type... - Constant *New = NewTy->getContext().getConstantAggregateZero(NewTy); + Constant *New = ConstantAggregateZero::get(NewTy); assert(New != OldC && "Didn't replace constant??"); OldC->uncheckedReplaceAllUsesWith(New); OldC->destroyConstant(); // This constant is now dead, destroy it. @@ -461,6 +461,7 @@ class LLVMContextImpl { friend class ConstantStruct; friend class ConstantArray; friend class ConstantVector; + friend class ConstantAggregateZero; public: LLVMContextImpl(LLVMContext &C); @@ -468,8 +469,6 @@ public: MDNode *getMDNode(Value*const* Vals, unsigned NumVals); - ConstantAggregateZero *getConstantAggregateZero(const Type *Ty); - ConstantInt *getTrue() { if (TheTrueVal) return TheTrueVal; @@ -486,7 +485,6 @@ public: void erase(MDString *M); void erase(MDNode *M); - void erase(ConstantAggregateZero *Z); }; } -- cgit v1.1