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 | b99ecca4954cbc3fbff77ffb252952cc19c4d799 (patch) | |
tree | 477eb7b58abe6134ff6accc805279396a77892e8 /lib/VMCore/LLVMContextImpl.h | |
parent | 5288eaeffedc8178bcd69de55f87fd4f27008a8e (diff) | |
download | external_llvm-b99ecca4954cbc3fbff77ffb252952cc19c4d799.zip external_llvm-b99ecca4954cbc3fbff77ffb252952cc19c4d799.tar.gz external_llvm-b99ecca4954cbc3fbff77ffb252952cc19c4d799.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.h')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.h | 6 |
1 files changed, 2 insertions, 4 deletions
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<ConstantAggregateZero, Type> { 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); }; } |