@@ -318,22 +318,6 @@ class DenseMapBase : public DebugEpochBase {
318
318
return Ret;
319
319
}
320
320
321
- // / Returns the value associated to the key in the map if it exists. If it
322
- // / does not exist, emplace a default value for the key and returns a
323
- // / reference to the newly created value.
324
- LLVM_DEPRECATED (" Use operator[] instead" , " [Key]" )
325
- ValueT &getOrInsertDefault (KeyT &&Key) {
326
- return try_emplace (Key).first ->second ;
327
- }
328
-
329
- // / Returns the value associated to the key in the map if it exists. If it
330
- // / does not exist, emplace a default value for the key and returns a
331
- // / reference to the newly created value.
332
- LLVM_DEPRECATED (" Use operator[] instead" , " [Key]" )
333
- ValueT &getOrInsertDefault (const KeyT &Key) {
334
- return try_emplace (Key).first ->second ;
335
- }
336
-
337
321
bool erase (const KeyT &Val) {
338
322
BucketT *TheBucket = doFind (Val);
339
323
if (!TheBucket)
@@ -353,15 +337,6 @@ class DenseMapBase : public DebugEpochBase {
353
337
incrementNumTombstones ();
354
338
}
355
339
356
- LLVM_DEPRECATED (" Use [Key] instead" , " [Key]" )
357
- value_type &FindAndConstruct (const KeyT &Key) {
358
- BucketT *TheBucket;
359
- if (LookupBucketFor (Key, TheBucket))
360
- return *TheBucket;
361
-
362
- return *InsertIntoBucket (TheBucket, Key);
363
- }
364
-
365
340
ValueT &operator [](const KeyT &Key) {
366
341
BucketT *TheBucket;
367
342
if (LookupBucketFor (Key, TheBucket))
@@ -370,15 +345,6 @@ class DenseMapBase : public DebugEpochBase {
370
345
return InsertIntoBucket (TheBucket, Key)->second ;
371
346
}
372
347
373
- LLVM_DEPRECATED (" Use [Key] instead" , " [Key]" )
374
- value_type &FindAndConstruct (KeyT &&Key) {
375
- BucketT *TheBucket;
376
- if (LookupBucketFor (Key, TheBucket))
377
- return *TheBucket;
378
-
379
- return *InsertIntoBucket (TheBucket, std::move (Key));
380
- }
381
-
382
348
ValueT &operator [](KeyT &&Key) {
383
349
BucketT *TheBucket;
384
350
if (LookupBucketFor (Key, TheBucket))
0 commit comments