From: Ted Kremenek Date: Fri, 7 Dec 2012 19:44:12 +0000 (+0000) Subject: Mark ImmutableMap::remove/add() const. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6cd738f33934a93b114d7dd9e4291f87f445c5c4;p=oota-llvm.git Mark ImmutableMap::remove/add() const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169629 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/ImmutableMap.h b/include/llvm/ADT/ImmutableMap.h index ce27d0536a5..f9baec213a6 100644 --- 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(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); }