mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Mark ImmutableMap::remove/add() const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169629 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
288bf1cab0
commit
6cd738f339
@ -333,12 +333,12 @@ public:
|
|||||||
if (Root) Root->release();
|
if (Root) Root->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImmutableMapRef add(key_type_ref K, data_type_ref D) {
|
ImmutableMapRef add(key_type_ref K, data_type_ref D) const {
|
||||||
TreeTy *NewT = Factory->add(Root, std::pair<key_type, data_type>(K, D));
|
TreeTy *NewT = Factory->add(Root, std::pair<key_type, data_type>(K, D));
|
||||||
return ImmutableMapRef(NewT, Factory);
|
return ImmutableMapRef(NewT, Factory);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImmutableMapRef remove(key_type_ref K) {
|
ImmutableMapRef remove(key_type_ref K) const {
|
||||||
TreeTy *NewT = Factory->remove(Root, K);
|
TreeTy *NewT = Factory->remove(Root, K);
|
||||||
return ImmutableMapRef(NewT, Factory);
|
return ImmutableMapRef(NewT, Factory);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user