summaryrefslogtreecommitdiff
path: root/lib/VMCore/LLVMContextImpl.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-23 08:52:32 +0000
committerChris Lattner <sabre@nondot.org>2012-01-23 08:52:32 +0000
commit3755615411713b2b27b1b2ffd3886584295843d1 (patch)
treeca55634b6aa11c5ef0b9579f2e1f808c10f58794 /lib/VMCore/LLVMContextImpl.h
parent300a263d93ba4bb320ae303ca5a388dc9800b112 (diff)
downloadllvm-3755615411713b2b27b1b2ffd3886584295843d1.tar.gz
llvm-3755615411713b2b27b1b2ffd3886584295843d1.tar.bz2
llvm-3755615411713b2b27b1b2ffd3886584295843d1.tar.xz
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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/VMCore/LLVMContextImpl.h b/lib/VMCore/LLVMContextImpl.h
index f963f63921..9d8722b272 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>