aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/ValueMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/ValueMap.h')
-rw-r--r--include/llvm/ADT/ValueMap.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/llvm/ADT/ValueMap.h b/include/llvm/ADT/ValueMap.h
index f756068..181fe71 100644
--- a/include/llvm/ADT/ValueMap.h
+++ b/include/llvm/ADT/ValueMap.h
@@ -82,18 +82,12 @@ class ValueMap {
typedef typename Config::ExtraData ExtraData;
MapT Map;
ExtraData Data;
+ ValueMap(const ValueMap&); // DO NOT IMPLEMENT
public:
typedef KeyT key_type;
typedef ValueT mapped_type;
typedef std::pair<KeyT, ValueT> value_type;
- ValueMap(const ValueMap& Other) : Map(Other.Map), Data(Other.Data) {
- // Each ValueMapCVH key contains a pointer to the containing ValueMap.
- // The keys in the new map need to point to the new map, not Other.
- for (typename MapT::iterator I = Map.begin(), E = Map.end(); I != E; ++I)
- I->first.Map = this;
- }
-
explicit ValueMap(unsigned NumInitBuckets = 64)
: Map(NumInitBuckets), Data() {}
explicit ValueMap(const ExtraData &Data, unsigned NumInitBuckets = 64)