@@ -7,7 +7,7 @@ use std::marker::PhantomData;
7
7
use gimli:: write:: {
8
8
Address , AttributeValue , CompilationUnit , DebugAbbrev , DebugInfo , DebugLine , DebugRanges ,
9
9
DebugRngLists , DebugStr , EndianVec , LineProgram , LineProgramId , LineProgramTable , Range ,
10
- RangeList , RangesTable , Result , SectionId , StringTable , UnitEntryId , UnitId , UnitTable , Writer ,
10
+ RangeList , RangeListTable , Result , SectionId , StringTable , UnitEntryId , UnitId , UnitTable , Writer ,
11
11
} ;
12
12
use gimli:: Format ;
13
13
@@ -43,8 +43,8 @@ pub struct DebugContext<'tcx> {
43
43
unit_id : UnitId ,
44
44
line_programs : LineProgramTable ,
45
45
global_line_program : LineProgramId ,
46
- ranges : RangesTable ,
47
- unit_ranges : RangeList ,
46
+ range_lists : RangeListTable ,
47
+ unit_range_list : RangeList ,
48
48
symbol_names : Vec < String > ,
49
49
50
50
_dummy : PhantomData < & ' tcx ( ) > ,
@@ -68,7 +68,7 @@ impl<'a, 'tcx: 'a> DebugContext<'tcx> {
68
68
let mut units = UnitTable :: default ( ) ;
69
69
let mut strings = StringTable :: default ( ) ;
70
70
let mut line_programs = LineProgramTable :: default ( ) ;
71
- let ranges = RangesTable :: default ( ) ;
71
+ let range_lists = RangeListTable :: default ( ) ;
72
72
73
73
let global_line_program = line_programs. add ( LineProgram :: new (
74
74
version,
@@ -122,8 +122,8 @@ impl<'a, 'tcx: 'a> DebugContext<'tcx> {
122
122
unit_id,
123
123
line_programs,
124
124
global_line_program,
125
- ranges ,
126
- unit_ranges : RangeList ( Vec :: new ( ) ) ,
125
+ range_lists ,
126
+ unit_range_list : RangeList ( Vec :: new ( ) ) ,
127
127
symbol_names : Vec :: new ( ) ,
128
128
_dummy : PhantomData ,
129
129
}
@@ -149,13 +149,13 @@ impl<'a, 'tcx: 'a> DebugContext<'tcx> {
149
149
}
150
150
151
151
pub fn emit ( & mut self , artifact : & mut Artifact ) {
152
- let unit_range_id = self . ranges . add ( self . unit_ranges . clone ( ) ) ;
152
+ let unit_range_list_id = self . range_lists . add ( self . unit_range_list . clone ( ) ) ;
153
153
let unit = self . units . get_mut ( self . unit_id ) ;
154
154
let root = unit. root ( ) ;
155
155
let root = unit. get_mut ( root) ;
156
156
root. set (
157
157
gimli:: DW_AT_ranges ,
158
- AttributeValue :: RangeListsRef ( unit_range_id ) ,
158
+ AttributeValue :: RangeListRef ( unit_range_list_id ) ,
159
159
) ;
160
160
161
161
let mut debug_abbrev = DebugAbbrev :: from ( WriterRelocate :: new ( self ) ) ;
@@ -167,8 +167,8 @@ impl<'a, 'tcx: 'a> DebugContext<'tcx> {
167
167
168
168
let debug_line_offsets = self . line_programs . write ( & mut debug_line) . unwrap ( ) ;
169
169
let debug_str_offsets = self . strings . write ( & mut debug_str) . unwrap ( ) ;
170
- let ( debug_ranges_offsets , debug_rnglists_offsets ) = self
171
- . ranges
170
+ let range_list_offsets = self
171
+ . range_lists
172
172
. write (
173
173
& mut debug_ranges,
174
174
& mut debug_rnglists,
@@ -182,8 +182,7 @@ impl<'a, 'tcx: 'a> DebugContext<'tcx> {
182
182
& mut debug_abbrev,
183
183
& mut debug_info,
184
184
& debug_line_offsets,
185
- & debug_ranges_offsets,
186
- & debug_rnglists_offsets,
185
+ & range_list_offsets,
187
186
& debug_str_offsets,
188
187
)
189
188
. unwrap ( ) ;
@@ -394,7 +393,7 @@ impl<'a, 'b, 'tcx: 'b> FunctionDebugContext<'a, 'tcx> {
394
393
byteorder:: LittleEndian :: write_u64 ( & mut size_array, size as u64 ) ;
395
394
entry. set ( gimli:: DW_AT_high_pc , AttributeValue :: Data8 ( size_array) ) ;
396
395
397
- self . debug_context . unit_ranges . 0 . push ( Range {
396
+ self . debug_context . unit_range_list . 0 . push ( Range {
398
397
begin : Address :: Relative {
399
398
symbol : self . symbol ,
400
399
addend : 0 ,
0 commit comments