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.cpp | |
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.cpp')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/VMCore/LLVMContextImpl.cpp b/lib/VMCore/LLVMContextImpl.cpp index 23d8ca3..bba5861 100644 --- a/lib/VMCore/LLVMContextImpl.cpp +++ b/lib/VMCore/LLVMContextImpl.cpp @@ -19,8 +19,6 @@ #include "llvm/Metadata.h" using namespace llvm; -static char getValType(ConstantAggregateZero *CPZ) { return 0; } - LLVMContextImpl::LLVMContextImpl(LLVMContext &C) : Context(C), TheTrueVal(0), TheFalseVal(0) { } @@ -59,15 +57,6 @@ MDNode *LLVMContextImpl::getMDNode(Value*const* Vals, unsigned NumVals) { return N; } -ConstantAggregateZero* -LLVMContextImpl::getConstantAggregateZero(const Type *Ty) { - assert((isa<StructType>(Ty) || isa<ArrayType>(Ty) || isa<VectorType>(Ty)) && - "Cannot create an aggregate zero of non-aggregate type!"); - - // Implicitly locked. - return AggZeroConstants.getOrCreate(Ty, 0); -} - // *** erase methods *** void LLVMContextImpl::erase(MDString *M) { @@ -79,7 +68,3 @@ void LLVMContextImpl::erase(MDNode *M) { sys::SmartScopedWriter<true> Writer(ConstantsLock); MDNodeSet.RemoveNode(M); } - -void LLVMContextImpl::erase(ConstantAggregateZero *Z) { - AggZeroConstants.remove(Z); -} |