aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-08-09 16:44:56 +0000
committerDuncan Sands <baldrick@free.fr>2010-08-09 16:44:56 +0000
commitfffe6cf084d91a8c99b710e30f2b9fb23d62b58d (patch)
tree2cbcb3ba3f1a3a98b095310a3bb056c4da8ea408 /include/llvm/ADT
parent99534bb81a0d945edd61d4db17549bde8449f94c (diff)
downloadexternal_llvm-fffe6cf084d91a8c99b710e30f2b9fb23d62b58d.zip
external_llvm-fffe6cf084d91a8c99b710e30f2b9fb23d62b58d.tar.gz
external_llvm-fffe6cf084d91a8c99b710e30f2b9fb23d62b58d.tar.bz2
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
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/ValueMap.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/ADT/ValueMap.h b/include/llvm/ADT/ValueMap.h
index 181fe71..af041fe 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).