diff options
| author | Chris Lattner <sabre@nondot.org> | 2012-01-23 15:09:44 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2012-01-23 15:09:44 +0000 |
| commit | 962c272f9567fadac32151315bae6bba8dea822f (patch) | |
| tree | 71ccf17f683c9971c5ebee34c137aa0858792231 /llvm/lib/VMCore/LLVMContextImpl.h | |
| parent | c94cf8faf6e30a362af5380ef9a2c4240ef7f58a (diff) | |
| download | bcm5719-llvm-962c272f9567fadac32151315bae6bba8dea822f.tar.gz bcm5719-llvm-962c272f9567fadac32151315bae6bba8dea822f.zip | |
revert r148691 and 148693
llvm-svn: 148698
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.h')
| -rw-r--r-- | llvm/lib/VMCore/LLVMContextImpl.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/VMCore/LLVMContextImpl.h b/llvm/lib/VMCore/LLVMContextImpl.h index 9d8722b2722..30f9d469878 100644 --- a/llvm/lib/VMCore/LLVMContextImpl.h +++ b/llvm/lib/VMCore/LLVMContextImpl.h @@ -27,7 +27,6 @@ #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> @@ -139,8 +138,7 @@ public: // on Context destruction. SmallPtrSet<MDNode*, 1> NonUniquedMDNodes; - typedef DenseMap<Type*, OwningPtr<ConstantAggregateZero> > CAZMapTy; - CAZMapTy CAZConstants; + ConstantUniqueMap<char, char, Type, ConstantAggregateZero> AggZeroConstants; typedef ConstantUniqueMap<std::vector<Constant*>, ArrayRef<Constant*>, ArrayType, ConstantArray, true /*largekey*/> ArrayConstantsTy; @@ -154,11 +152,9 @@ public: VectorType, ConstantVector> VectorConstantsTy; VectorConstantsTy VectorConstants; - typedef DenseMap<PointerType*, OwningPtr<ConstantPointerNull> > CPNMapTy; - CPNMapTy CPNConstants; - - typedef DenseMap<Type*, OwningPtr<UndefValue> > UVMapTy; - UVMapTy UVConstants; + ConstantUniqueMap<char, char, PointerType, ConstantPointerNull> + NullPtrConstants; + ConstantUniqueMap<char, char, Type, UndefValue> UndefValueConstants; DenseMap<std::pair<Function*, BasicBlock*> , BlockAddress*> BlockAddresses; ConstantUniqueMap<ExprMapKeyType, const ExprMapKeyType&, Type, ConstantExpr> |

