[llvm-commits] [llvm] r169629 - /llvm/trunk/include/llvm/ADT/ImmutableMap.h
Ted Kremenek
kremenek at apple.com
Fri Dec 7 11:44:12 PST 2012
Author: kremenek
Date: Fri Dec 7 13:44:12 2012
New Revision: 169629
URL: http://llvm.org/viewvc/llvm-project?rev=169629&view=rev
Log:
Mark ImmutableMap::remove/add() const.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableMap.h
Modified: llvm/trunk/include/llvm/ADT/ImmutableMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableMap.h?rev=169629&r1=169628&r2=169629&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableMap.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableMap.h Fri Dec 7 13:44:12 2012
@@ -333,12 +333,12 @@
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);
}
More information about the llvm-commits
mailing list