aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/ImmutableIntervalMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/ImmutableIntervalMap.h')
-rw-r--r--include/llvm/ADT/ImmutableIntervalMap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/ImmutableIntervalMap.h b/include/llvm/ADT/ImmutableIntervalMap.h
index fd85d44903..2ab78cd4de 100644
--- a/include/llvm/ADT/ImmutableIntervalMap.h
+++ b/include/llvm/ADT/ImmutableIntervalMap.h
@@ -92,6 +92,9 @@ class ImutIntervalAVLFactory : public ImutAVLFactory<ImutInfo> {
typedef typename ImutInfo::data_type_ref data_type_ref;
public:
+ ImutIntervalAVLFactory(BumpPtrAllocator &Alloc)
+ : ImutAVLFactory<ImutInfo>(Alloc) {}
+
TreeTy *Add(TreeTy *T, value_type_ref V) {
T = Add_internal(V,T);
MarkImmutable(T);
@@ -202,6 +205,8 @@ public:
ImutIntervalAVLFactory<ImutIntervalInfo<ValT> > F;
public:
+ Factory(BumpPtrAllocator& Alloc) : F(Alloc) {}
+
ImmutableIntervalMap GetEmptyMap() {
return ImmutableIntervalMap(F.GetEmptyTree());
}