projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beb4269
)
Add constructors.
author
Zhongxing Xu
<xuzhongxing@gmail.com>
Wed, 3 Feb 2010 09:04:11 +0000
(09:04 +0000)
committer
Zhongxing Xu
<xuzhongxing@gmail.com>
Wed, 3 Feb 2010 09:04:11 +0000
(09:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95212
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/ImmutableIntervalMap.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/ImmutableIntervalMap.h
b/include/llvm/ADT/ImmutableIntervalMap.h
index fd85d44903a2bda478edb56d4357d23118d1b86d..2ab78cd4deba73860c06ea338d77e8f9cdac9e65 100644
(file)
--- 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());
}