[llvm-commits] [llvm] r95212 - /llvm/trunk/include/llvm/ADT/ImmutableIntervalMap.h
Zhongxing Xu
xuzhongxing at gmail.com
Wed Feb 3 01:04:12 PST 2010
Author: zhongxingxu
Date: Wed Feb 3 03:04:11 2010
New Revision: 95212
URL: http://llvm.org/viewvc/llvm-project?rev=95212&view=rev
Log:
Add constructors.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableIntervalMap.h
Modified: llvm/trunk/include/llvm/ADT/ImmutableIntervalMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableIntervalMap.h?rev=95212&r1=95211&r2=95212&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableIntervalMap.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableIntervalMap.h Wed Feb 3 03:04:11 2010
@@ -92,6 +92,9 @@
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 @@
ImutIntervalAVLFactory<ImutIntervalInfo<ValT> > F;
public:
+ Factory(BumpPtrAllocator& Alloc) : F(Alloc) {}
+
ImmutableIntervalMap GetEmptyMap() {
return ImmutableIntervalMap(F.GetEmptyTree());
}
More information about the llvm-commits
mailing list