From 6cd738f33934a93b114d7dd9e4291f87f445c5c4 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 7 Dec 2012 19:44:12 +0000 Subject: [PATCH] Mark ImmutableMap::remove/add() const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169629 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/ImmutableMap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }