@@ -343,23 +343,14 @@ linemap_check_macro (const line_map *map)
343
343
return (const line_map_macro * )map ;
344
344
}
345
345
346
- /* Read the start location of MAP, as an rvalue . */
346
+ /* Read the start location of MAP. */
347
347
348
348
inline source_location
349
349
MAP_START_LOCATION (const line_map * map )
350
350
{
351
351
return map -> start_location ;
352
352
}
353
353
354
- /* Access the start location of MAP as a reference
355
- (e.g. as an lvalue). */
356
-
357
- inline source_location &
358
- MAP_START_LOCATION (line_map * map )
359
- {
360
- return map -> start_location ;
361
- }
362
-
363
354
/* Get the starting line number of ordinary map MAP. */
364
355
365
356
inline linenum_type
@@ -368,15 +359,6 @@ ORDINARY_MAP_STARTING_LINE_NUMBER (const line_map_ordinary *ord_map)
368
359
return ord_map -> to_line ;
369
360
}
370
361
371
- /* Access the starting line number of ordinary map MAP by
372
- reference (e.g. as an lvalue). */
373
-
374
- inline linenum_type &
375
- ORDINARY_MAP_STARTING_LINE_NUMBER (line_map_ordinary * ord_map )
376
- {
377
- return ord_map -> to_line ;
378
- }
379
-
380
362
/* Get the index of the ordinary map at whose end
381
363
ordinary map MAP was included.
382
364
@@ -388,14 +370,6 @@ ORDINARY_MAP_INCLUDER_FILE_INDEX (const line_map_ordinary *ord_map)
388
370
return ord_map -> included_from ;
389
371
}
390
372
391
- /* As above, but by reference (e.g. as an lvalue). */
392
-
393
- inline int &
394
- ORDINARY_MAP_INCLUDER_FILE_INDEX (line_map_ordinary * ord_map )
395
- {
396
- return ord_map -> included_from ;
397
- }
398
-
399
373
/* Return a positive value if map encodes locations from a system
400
374
header, 0 otherwise. Returns 1 if ordinary map MAP encodes locations
401
375
in a system header and 2 if it encodes locations in a C system header
@@ -407,14 +381,6 @@ ORDINARY_MAP_IN_SYSTEM_HEADER_P (const line_map_ordinary *ord_map)
407
381
return ord_map -> sysp ;
408
382
}
409
383
410
- /* As above, but by reference (e.g. as an lvalue). */
411
-
412
- inline unsigned char &
413
- ORDINARY_MAP_IN_SYSTEM_HEADER_P (line_map_ordinary * ord_map )
414
- {
415
- return ord_map -> sysp ;
416
- }
417
-
418
384
/* Get the number of the low-order source_location bits used for a
419
385
column number within ordinary map MAP. */
420
386
@@ -424,16 +390,6 @@ ORDINARY_MAP_NUMBER_OF_COLUMN_BITS (const line_map_ordinary *ord_map)
424
390
return ord_map -> column_bits ;
425
391
}
426
392
427
- /* Set the number of the low-order source_location bits used for a
428
- column number within ordinary map MAP. */
429
-
430
- inline void
431
- SET_ORDINARY_MAP_NUMBER_OF_COLUMN_BITS (line_map_ordinary * ord_map ,
432
- int col_bits )
433
- {
434
- ord_map -> column_bits = col_bits ;
435
- }
436
-
437
393
/* Get the filename of ordinary map MAP. */
438
394
439
395
inline const char *
@@ -442,14 +398,6 @@ ORDINARY_MAP_FILE_NAME (const line_map_ordinary *ord_map)
442
398
return ord_map -> to_file ;
443
399
}
444
400
445
- /* As above, but by reference (e.g. as an lvalue). */
446
-
447
- inline const char * &
448
- ORDINARY_MAP_FILE_NAME (line_map_ordinary * ord_map )
449
- {
450
- return ord_map -> to_file ;
451
- }
452
-
453
401
/* Get the cpp macro whose expansion gave birth to macro map MAP. */
454
402
455
403
inline cpp_hashnode *
@@ -458,14 +406,6 @@ MACRO_MAP_MACRO (const line_map_macro *macro_map)
458
406
return macro_map -> macro ;
459
407
}
460
408
461
- /* As above, but by reference (e.g. as an lvalue). */
462
-
463
- inline cpp_hashnode * &
464
- MACRO_MAP_MACRO (line_map_macro * macro_map )
465
- {
466
- return macro_map -> macro ;
467
- }
468
-
469
409
/* Get the number of tokens inside the replacement-list of the macro
470
410
that led to macro map MAP. */
471
411
@@ -475,14 +415,6 @@ MACRO_MAP_NUM_MACRO_TOKENS (const line_map_macro *macro_map)
475
415
return macro_map -> n_tokens ;
476
416
}
477
417
478
- /* As above, but by reference (e.g. as an lvalue). */
479
-
480
- inline unsigned int &
481
- MACRO_MAP_NUM_MACRO_TOKENS (line_map_macro * macro_map )
482
- {
483
- return macro_map -> n_tokens ;
484
- }
485
-
486
418
/* Get the array of pairs of locations within macro map MAP.
487
419
See the declaration of line_map_macro for more information. */
488
420
@@ -492,14 +424,6 @@ MACRO_MAP_LOCATIONS (const line_map_macro *macro_map)
492
424
return macro_map -> macro_locations ;
493
425
}
494
426
495
- /* As above, but by reference (e.g. as an lvalue). */
496
-
497
- inline source_location * &
498
- MACRO_MAP_LOCATIONS (line_map_macro * macro_map )
499
- {
500
- return macro_map -> macro_locations ;
501
- }
502
-
503
427
/* Get the location of the expansion point of the macro map MAP. */
504
428
505
429
inline source_location
@@ -508,14 +432,6 @@ MACRO_MAP_EXPANSION_POINT_LOCATION (const line_map_macro *macro_map)
508
432
return macro_map -> expansion ;
509
433
}
510
434
511
- /* As above, but by reference (e.g. as an lvalue). */
512
-
513
- inline source_location &
514
- MACRO_MAP_EXPANSION_POINT_LOCATION (line_map_macro * macro_map )
515
- {
516
- return macro_map -> expansion ;
517
- }
518
-
519
435
/* The abstraction of a set of location maps. There can be several
520
436
types of location maps. This abstraction contains the attributes
521
437
that are independent from the type of the map.
0 commit comments