From: Duncan Sands Date: Mon, 9 Aug 2010 16:44:56 +0000 (+0000) Subject: Remove the ValueMap operator=, which was wrong (it did't correct the X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fffe6cf084d91a8c99b710e30f2b9fb23d62b58d;p=oota-llvm.git Remove the ValueMap operator=, which was wrong (it did't correct the Map pointers of any contained ValueMapCallbackVH's) and unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110577 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/ValueMap.h b/include/llvm/ADT/ValueMap.h index 181fe71e370..af041fe5216 100644 --- a/include/llvm/ADT/ValueMap.h +++ b/include/llvm/ADT/ValueMap.h @@ -83,6 +83,7 @@ class ValueMap { MapT Map; ExtraData Data; ValueMap(const ValueMap&); // DO NOT IMPLEMENT + ValueMap& operator=(const ValueMap&); // DO NOT IMPLEMENT public: typedef KeyT key_type; typedef ValueT mapped_type; @@ -160,12 +161,6 @@ public: return Map[Wrap(Key)]; } - ValueMap& operator=(const ValueMap& Other) { - Map = Other.Map; - Data = Other.Data; - return *this; - } - /// isPointerIntoBucketsArray - Return true if the specified pointer points /// somewhere into the ValueMap's array of buckets (i.e. either to a key or /// value in the ValueMap).