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
This commit is contained in:
Duncan Sands 2010-08-09 16:44:56 +00:00
parent 99534bb81a
commit fffe6cf084

View File

@ -83,6 +83,7 @@ class ValueMap {
MapT Map; MapT Map;
ExtraData Data; ExtraData Data;
ValueMap(const ValueMap&); // DO NOT IMPLEMENT ValueMap(const ValueMap&); // DO NOT IMPLEMENT
ValueMap& operator=(const ValueMap&); // DO NOT IMPLEMENT
public: public:
typedef KeyT key_type; typedef KeyT key_type;
typedef ValueT mapped_type; typedef ValueT mapped_type;
@ -160,12 +161,6 @@ public:
return Map[Wrap(Key)]; 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 /// isPointerIntoBucketsArray - Return true if the specified pointer points
/// somewhere into the ValueMap's array of buckets (i.e. either to a key or /// somewhere into the ValueMap's array of buckets (i.e. either to a key or
/// value in the ValueMap). /// value in the ValueMap).