summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContextImpl.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-23 08:42:38 +0000
committerChris Lattner <sabre@nondot.org>2012-01-23 08:42:38 +0000
commit1910c9c3a0accade38cc8e4b987bcffeb97fbb9a (patch)
tree98e969d1b7461edefde4245b39d2b4a00c1d2126 /llvm/lib/VMCore/LLVMContextImpl.h
parent1c8c436a854e7bc26775d1dc4f49313d684d59eb (diff)
downloadbcm5719-llvm-1910c9c3a0accade38cc8e4b987bcffeb97fbb9a.tar.gz
bcm5719-llvm-1910c9c3a0accade38cc8e4b987bcffeb97fbb9a.zip
Replace a use of ConstantUniqueMap for CAZ constants with a simple DenseMap.
Now that the type system rewrite has landed, there is no need for its complexity and std::map'ness. llvm-svn: 148691
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.h')
-rw-r--r--llvm/lib/VMCore/LLVMContextImpl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/LLVMContextImpl.h b/llvm/lib/VMCore/LLVMContextImpl.h
index 30f9d469878..f963f639211 100644
--- a/llvm/lib/VMCore/LLVMContextImpl.h
+++ b/llvm/lib/VMCore/LLVMContextImpl.h
@@ -27,6 +27,7 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/FoldingSet.h"
+#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/StringMap.h"
#include <vector>
@@ -138,7 +139,8 @@ public:
// on Context destruction.
SmallPtrSet<MDNode*, 1> NonUniquedMDNodes;
- ConstantUniqueMap<char, char, Type, ConstantAggregateZero> AggZeroConstants;
+ typedef DenseMap<Type*, OwningPtr<ConstantAggregateZero> > CAZMapTy;
+ CAZMapTy CAZConstants;
typedef ConstantUniqueMap<std::vector<Constant*>, ArrayRef<Constant*>,
ArrayType, ConstantArray, true /*largekey*/> ArrayConstantsTy;
OpenPOWER on IntegriCloud