summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit4494e1ae259b3986689303745e7f7f5117e668c0 (patch)
tree52da4a65d44ed19e1caf60f1f50af9edd43f9137 /llvm/lib/VMCore/LLVMContextImpl.h
parent75499f5d0444e7d123cfd10823f4dd44e40f30bf (diff)
downloadbcm5719-llvm-4494e1ae259b3986689303745e7f7f5117e668c0.tar.gz
bcm5719-llvm-4494e1ae259b3986689303745e7f7f5117e668c0.zip
switch UndefValue and ConstantPointerNull over to DenseMap's for uniquing.
llvm-svn: 148693
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.h')
-rw-r--r--llvm/lib/VMCore/LLVMContextImpl.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/LLVMContextImpl.h b/llvm/lib/VMCore/LLVMContextImpl.h
index f963f639211..9d8722b2722 100644
--- a/llvm/lib/VMCore/LLVMContextImpl.h
+++ b/llvm/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>
OpenPOWER on IntegriCloud