@@ -7,34 +7,34 @@ index: File.Index,
77ar_name : ? []const u8 = null ,
88
99header : ? macho.mach_header_64 = null ,
10- sections : std .MultiArrayList (Section ) = .{} ,
11- symtab : std .MultiArrayList (Nlist ) = .{} ,
12- strtab : std .ArrayListUnmanaged (u8 ) = .{} ,
10+ sections : std .MultiArrayList (Section ) = .empty ,
11+ symtab : std .MultiArrayList (Nlist ) = .empty ,
12+ strtab : std .ArrayListUnmanaged (u8 ) = .empty ,
1313
14- symbols : std .ArrayListUnmanaged (Symbol ) = .{} ,
15- symbols_extra : std .ArrayListUnmanaged (u32 ) = .{} ,
16- globals : std .ArrayListUnmanaged (MachO .SymbolResolver .Index ) = .{} ,
17- atoms : std .ArrayListUnmanaged (Atom ) = .{} ,
18- atoms_indexes : std .ArrayListUnmanaged (Atom .Index ) = .{} ,
19- atoms_extra : std .ArrayListUnmanaged (u32 ) = .{} ,
14+ symbols : std .ArrayListUnmanaged (Symbol ) = .empty ,
15+ symbols_extra : std .ArrayListUnmanaged (u32 ) = .empty ,
16+ globals : std .ArrayListUnmanaged (MachO .SymbolResolver .Index ) = .empty ,
17+ atoms : std .ArrayListUnmanaged (Atom ) = .empty ,
18+ atoms_indexes : std .ArrayListUnmanaged (Atom .Index ) = .empty ,
19+ atoms_extra : std .ArrayListUnmanaged (u32 ) = .empty ,
2020
2121compile_unit : ? CompileUnit = null ,
22- stab_files : std .ArrayListUnmanaged (StabFile ) = .{} ,
22+ stab_files : std .ArrayListUnmanaged (StabFile ) = .empty ,
2323
2424eh_frame_sect_index : ? u8 = null ,
2525compact_unwind_sect_index : ? u8 = null ,
26- cies : std .ArrayListUnmanaged (Cie ) = .{} ,
27- fdes : std .ArrayListUnmanaged (Fde ) = .{} ,
28- eh_frame_data : std .ArrayListUnmanaged (u8 ) = .{} ,
29- unwind_records : std .ArrayListUnmanaged (UnwindInfo .Record ) = .{} ,
30- unwind_records_indexes : std .ArrayListUnmanaged (UnwindInfo .Record .Index ) = .{} ,
31- data_in_code : std .ArrayListUnmanaged (macho .data_in_code_entry ) = .{} ,
26+ cies : std .ArrayListUnmanaged (Cie ) = .empty ,
27+ fdes : std .ArrayListUnmanaged (Fde ) = .empty ,
28+ eh_frame_data : std .ArrayListUnmanaged (u8 ) = .empty ,
29+ unwind_records : std .ArrayListUnmanaged (UnwindInfo .Record ) = .empty ,
30+ unwind_records_indexes : std .ArrayListUnmanaged (UnwindInfo .Record .Index ) = .empty ,
31+ data_in_code : std .ArrayListUnmanaged (macho .data_in_code_entry ) = .empty ,
3232
3333alive : bool = true ,
3434hidden : bool = false ,
3535
3636compact_unwind_ctx : CompactUnwindCtx = .{},
37- output_symtab_ctx : MachO.SymtabCtx = .{} ,
37+ output_symtab_ctx : MachO.SymtabCtx = .init ,
3838
3939pub fn deinit (self : * Object , allocator : Allocator ) void {
4040 allocator .free (self .path );
@@ -1455,7 +1455,7 @@ fn findCompileUnit(self: *Object, gpa: Allocator, dwarf: Dwarf, macho_file: *Mac
14551455 break :str_offsets_base try info_reader .readOffset (cuh .format );
14561456 } else null ;
14571457
1458- var cu : CompileUnit = .{ .comp_dir = .{} , .tu_name = .{} };
1458+ var cu : CompileUnit = .{ .comp_dir = .init , .tu_name = .init };
14591459 for (&[_ ]struct { Pos , * MachO .String }{
14601460 .{ saved .comp_dir .? , & cu .comp_dir },
14611461 .{ saved .tu_name .? , & cu .tu_name },
0 commit comments