diff options
| author | Chris Lattner <sabre@nondot.org> | 2012-01-23 15:20:12 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2012-01-23 15:20:12 +0000 | 
| commit | c7f9fd4da8be02b41ff2b44905bee9f1695a9be9 (patch) | |
| tree | 29d2e3e80a6930efdfddc2839ecd55bb601e63b9 /llvm/lib/VMCore/LLVMContextImpl.h | |
| parent | de0132a76339c52ba251526b6b7370aa628d9553 (diff) | |
| download | bcm5719-llvm-c7f9fd4da8be02b41ff2b44905bee9f1695a9be9.tar.gz bcm5719-llvm-c7f9fd4da8be02b41ff2b44905bee9f1695a9be9.zip | |
convert CAZ, UndefValue, and CPN to use DenseMap's again, this time without
using OwningPtr.  OwningPtr would barf when the densemap had to reallocate,
which doesn't appear to happen on the regression test suite, but obviously
happens in real life :)
llvm-svn: 148700
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.h')
| -rw-r--r-- | llvm/lib/VMCore/LLVMContextImpl.h | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/llvm/lib/VMCore/LLVMContextImpl.h b/llvm/lib/VMCore/LLVMContextImpl.h index 30f9d469878..f8abdf17e8a 100644 --- a/llvm/lib/VMCore/LLVMContextImpl.h +++ b/llvm/lib/VMCore/LLVMContextImpl.h @@ -138,7 +138,7 @@ public:    // on Context destruction.    SmallPtrSet<MDNode*, 1> NonUniquedMDNodes; -  ConstantUniqueMap<char, char, Type, ConstantAggregateZero> AggZeroConstants; +  DenseMap<Type*, ConstantAggregateZero*> CAZConstants;    typedef ConstantUniqueMap<std::vector<Constant*>, ArrayRef<Constant*>,      ArrayType, ConstantArray, true /*largekey*/> ArrayConstantsTy; @@ -152,9 +152,9 @@ public:                              VectorType, ConstantVector> VectorConstantsTy;    VectorConstantsTy VectorConstants; -  ConstantUniqueMap<char, char, PointerType, ConstantPointerNull> -    NullPtrConstants; -  ConstantUniqueMap<char, char, Type, UndefValue> UndefValueConstants; +  DenseMap<PointerType*, ConstantPointerNull*> CPNConstants; + +  DenseMap<Type*, UndefValue*> UVConstants;    DenseMap<std::pair<Function*, BasicBlock*> , BlockAddress*> BlockAddresses;    ConstantUniqueMap<ExprMapKeyType, const ExprMapKeyType&, Type, ConstantExpr> | 

