summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitdcfa2576b0d21c555aed50027e9132de58c3bc4d (patch)
tree8f161dcdefa90b9856c0b5d476da9e16ecc55808 /llvm
parent4a2f5464a7365cf6528a4ef4369bfe5670d0b115 (diff)
downloadbcm5719-llvm-dcfa2576b0d21c555aed50027e9132de58c3bc4d.tar.gz
bcm5719-llvm-dcfa2576b0d21c555aed50027e9132de58c3bc4d.zip
Add constructors.
llvm-svn: 95212
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/ImmutableIntervalMap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/ImmutableIntervalMap.h b/llvm/include/llvm/ADT/ImmutableIntervalMap.h
index fd85d44903a..2ab78cd4deb 100644
--- a/llvm/include/llvm/ADT/ImmutableIntervalMap.h
+++ b/llvm/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());
}
OpenPOWER on IntegriCloud