aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-02-03 09:04:11 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-02-03 09:04:11 +0000
commit1c8bd7dc0a9d6de3a4ff850fc5ba15265f2a6d33 (patch)
tree0bf539e446b947c16501a869d43c32905f1b6d35 /include/llvm/ADT
parentbeb42691b1b58664e99cdc61cb5f4900298b432a (diff)
downloadexternal_llvm-1c8bd7dc0a9d6de3a4ff850fc5ba15265f2a6d33.zip
external_llvm-1c8bd7dc0a9d6de3a4ff850fc5ba15265f2a6d33.tar.gz
external_llvm-1c8bd7dc0a9d6de3a4ff850fc5ba15265f2a6d33.tar.bz2
Add constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-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 fd85d44..2ab78cd 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());
}