summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContextImpl.h
diff options
context:
space:
mode:
authorTalin <viridia@gmail.com>2012-02-05 20:54:10 +0000
committerTalin <viridia@gmail.com>2012-02-05 20:54:10 +0000
commit46e9b441f0fb3a538f5c5b08e566fb0dc79b485e (patch)
tree6c075860eb7122015248059da1b48fb59405896e /llvm/lib/VMCore/LLVMContextImpl.h
parent52da72b12ad8d00c566a050ee924ff2c746b70f8 (diff)
downloadbcm5719-llvm-46e9b441f0fb3a538f5c5b08e566fb0dc79b485e.tar.gz
bcm5719-llvm-46e9b441f0fb3a538f5c5b08e566fb0dc79b485e.zip
Efficient Constant Uniquing.
llvm-svn: 149848
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.h')
-rw-r--r--llvm/lib/VMCore/LLVMContextImpl.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/VMCore/LLVMContextImpl.h b/llvm/lib/VMCore/LLVMContextImpl.h
index ca37ffa9faf..a27afc08b9f 100644
--- a/llvm/lib/VMCore/LLVMContextImpl.h
+++ b/llvm/lib/VMCore/LLVMContextImpl.h
@@ -140,16 +140,13 @@ public:
DenseMap<Type*, ConstantAggregateZero*> CAZConstants;
- typedef ConstantUniqueMap<std::vector<Constant*>, ArrayRef<Constant*>,
- ArrayType, ConstantArray, true /*largekey*/> ArrayConstantsTy;
+ typedef ConstantAggrUniqueMap<ArrayType, ConstantArray> ArrayConstantsTy;
ArrayConstantsTy ArrayConstants;
- typedef ConstantUniqueMap<std::vector<Constant*>, ArrayRef<Constant*>,
- StructType, ConstantStruct, true /*largekey*/> StructConstantsTy;
+ typedef ConstantAggrUniqueMap<StructType, ConstantStruct> StructConstantsTy;
StructConstantsTy StructConstants;
- typedef ConstantUniqueMap<std::vector<Constant*>, ArrayRef<Constant*>,
- VectorType, ConstantVector> VectorConstantsTy;
+ typedef ConstantAggrUniqueMap<VectorType, ConstantVector> VectorConstantsTy;
VectorConstantsTy VectorConstants;
DenseMap<PointerType*, ConstantPointerNull*> CPNConstants;
OpenPOWER on IntegriCloud