mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
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:
@@ -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).
|
||||||
|
Reference in New Issue
Block a user