From dcfa2576b0d21c555aed50027e9132de58c3bc4d Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Wed, 3 Feb 2010 09:04:11 +0000 Subject: [PATCH] Add constructors. llvm-svn: 95212 --- llvm/include/llvm/ADT/ImmutableIntervalMap.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/ADT/ImmutableIntervalMap.h b/llvm/include/llvm/ADT/ImmutableIntervalMap.h index fd85d44903a2..2ab78cd4deba 100644 --- a/llvm/include/llvm/ADT/ImmutableIntervalMap.h +++ b/llvm/include/llvm/ADT/ImmutableIntervalMap.h @@ -92,6 +92,9 @@ class ImutIntervalAVLFactory : public ImutAVLFactory { typedef typename ImutInfo::data_type_ref data_type_ref; public: + ImutIntervalAVLFactory(BumpPtrAllocator &Alloc) + : ImutAVLFactory(Alloc) {} + TreeTy *Add(TreeTy *T, value_type_ref V) { T = Add_internal(V,T); MarkImmutable(T); @@ -202,6 +205,8 @@ public: ImutIntervalAVLFactory > F; public: + Factory(BumpPtrAllocator& Alloc) : F(Alloc) {} + ImmutableIntervalMap GetEmptyMap() { return ImmutableIntervalMap(F.GetEmptyTree()); }