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:
288bf1c
)
Mark ImmutableMap::remove/add() const.
author
Ted Kremenek
<kremenek@apple.com>
Fri, 7 Dec 2012 19:44:12 +0000
(19:44 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Fri, 7 Dec 2012 19:44:12 +0000
(19:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169629
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/ImmutableMap.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/ImmutableMap.h
b/include/llvm/ADT/ImmutableMap.h
index ce27d0536a5ac03c46b3af04ac283d1b17fcb54e..f9baec213a6eae70526261b0629a90ccf4e16bc5 100644
(file)
--- a/
include/llvm/ADT/ImmutableMap.h
+++ b/
include/llvm/ADT/ImmutableMap.h
@@
-333,12
+333,12
@@
public:
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));
return ImmutableMapRef(NewT, Factory);
}
- ImmutableMapRef remove(key_type_ref K) {
+ ImmutableMapRef remove(key_type_ref K)
const
{
TreeTy *NewT = Factory->remove(Root, K);
return ImmutableMapRef(NewT, Factory);
}