diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-23 08:52:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-23 08:52:32 +0000 |
commit | 3755615411713b2b27b1b2ffd3886584295843d1 (patch) | |
tree | ca55634b6aa11c5ef0b9579f2e1f808c10f58794 /lib/VMCore/LLVMContextImpl.h | |
parent | 300a263d93ba4bb320ae303ca5a388dc9800b112 (diff) | |
download | external_llvm-3755615411713b2b27b1b2ffd3886584295843d1.zip external_llvm-3755615411713b2b27b1b2ffd3886584295843d1.tar.gz external_llvm-3755615411713b2b27b1b2ffd3886584295843d1.tar.bz2 |
switch UndefValue and ConstantPointerNull over to DenseMap's for uniquing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.h')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/VMCore/LLVMContextImpl.h b/lib/VMCore/LLVMContextImpl.h index f963f63..9d8722b 100644 --- a/lib/VMCore/LLVMContextImpl.h +++ b/lib/VMCore/LLVMContextImpl.h @@ -154,9 +154,11 @@ public: VectorType, ConstantVector> VectorConstantsTy; VectorConstantsTy VectorConstants; - ConstantUniqueMap<char, char, PointerType, ConstantPointerNull> - NullPtrConstants; - ConstantUniqueMap<char, char, Type, UndefValue> UndefValueConstants; + typedef DenseMap<PointerType*, OwningPtr<ConstantPointerNull> > CPNMapTy; + CPNMapTy CPNConstants; + + typedef DenseMap<Type*, OwningPtr<UndefValue> > UVMapTy; + UVMapTy UVConstants; DenseMap<std::pair<Function*, BasicBlock*> , BlockAddress*> BlockAddresses; ConstantUniqueMap<ExprMapKeyType, const ExprMapKeyType&, Type, ConstantExpr> |