From: Zhongxing Xu Date: Wed, 3 Feb 2010 09:04:11 +0000 (+0000) Subject: Add constructors. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1c8bd7dc0a9d6de3a4ff850fc5ba15265f2a6d33;p=oota-llvm.git Add constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95212 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/ImmutableIntervalMap.h b/include/llvm/ADT/ImmutableIntervalMap.h index fd85d44903a..2ab78cd4deb 100644 --- a/include/llvm/ADT/ImmutableIntervalMap.h +++ b/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()); }