authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2026-06-11 02:18:49-04:00
committergravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2026-06-23 00:27:17-04:00
log0405f7881828b2ba251fc7fe5724d91f9a658c16
treeb96ac28b0accfc49963b5d273ba2769c5130d54f
parentf2a778ca523ebe5b84f0d5463be24ca43262eea3

Coff: fixup ArrayHashMapUnmanaged usage


1 files changed, 14 insertions(+), 14 deletions(-)

src/link/Coff.zig+14-14
...@@ -25,24 +25,24 @@ base: link.File,...@@ -25,24 +25,24 @@ base: link.File,
25mf: MappedFile,25mf: MappedFile,
26nodes: std.MultiArrayList(Node),26nodes: std.MultiArrayList(Node),
27members: std.ArrayList(Member),27members: std.ArrayList(Member),
28pending_members: std.AutoArrayHashMapUnmanaged(Member.Index, void),28pending_members: std.array_hash_map.Auto(Member.Index, void),
29lib_string_table: std.ArrayList(String),29lib_string_table: std.ArrayList(String),
30lib_string_len: u32,30lib_string_len: u32,
31long_names_table: LongNamesTable,31long_names_table: LongNamesTable,
32import_table: ImportTable,32import_table: ImportTable,
33export_table: ExportTable,33export_table: ExportTable,
34symbol_table: SymbolTable,34symbol_table: SymbolTable,
35inputs: std.ArrayHashMapUnmanaged(std.Build.Cache.Path, void, std.Build.Cache.Path.TableAdapter, false),35inputs: std.array_hash_map.Custom(std.Build.Cache.Path, void, std.Build.Cache.Path.TableAdapter, false),
36input_archives: std.ArrayList(InputArchive),36input_archives: std.ArrayList(InputArchive),
37input_archive_members: std.ArrayList(InputArchive.Member),37input_archive_members: std.ArrayList(InputArchive.Member),
38input_archive_symbols: std.ArrayList(InputArchive.Member.Symbol),38input_archive_symbols: std.ArrayList(InputArchive.Member.Symbol),
39input_archive_symbol_indices: std.AutoArrayHashMapUnmanaged(String, InputArchive.SearchList),39input_archive_symbol_indices: std.array_hash_map.Auto(String, InputArchive.SearchList),
40pending_input: ?InputArchive.Member.Index,40pending_input: ?InputArchive.Member.Index,
41pending_default_libs: std.ArrayList(struct {41pending_default_libs: std.ArrayList(struct {
42 path: []const u8,42 path: []const u8,
43 ioi: InputObject.Index,43 ioi: InputObject.Index,
44}),44}),
45alternate_names: std.AutoArrayHashMapUnmanaged(String, String),45alternate_names: std.array_hash_map.Auto(String, String),
46input_objects: std.ArrayList(InputObject),46input_objects: std.ArrayList(InputObject),
47input_symbols: std.ArrayList(struct { si: Symbol.Index, name: String }),47input_symbols: std.ArrayList(struct { si: Symbol.Index, name: String }),
48input_sections: std.ArrayList(Node.InputSection),48input_sections: std.ArrayList(Node.InputSection),
...@@ -57,10 +57,10 @@ strings: std.HashMapUnmanaged(...@@ -57,10 +57,10 @@ strings: std.HashMapUnmanaged(
57 std.hash_map.default_max_load_percentage,57 std.hash_map.default_max_load_percentage,
58),58),
59string_bytes: std.ArrayList(u8),59string_bytes: std.ArrayList(u8),
60section_table: std.AutoArrayHashMapUnmanaged(String, Section),60section_table: std.array_hash_map.Auto(String, Section),
61pseudo_section_table: std.array_hash_map.Auto(String, Symbol.Index),61pseudo_section_table: std.array_hash_map.Auto(String, Symbol.Index),
62object_section_table: std.array_hash_map.Auto(String, Symbol.Index),62object_section_table: std.array_hash_map.Auto(String, Symbol.Index),
63section_merges: std.AutoArrayHashMapUnmanaged(String, String),63section_merges: std.array_hash_map.Auto(String, String),
64section_merge_pending_index: u32,64section_merge_pending_index: u32,
65symbols: std.ArrayList(Symbol),65symbols: std.ArrayList(Symbol),
66globals: std.array_hash_map.Auto(GlobalName, Symbol.Index),66globals: std.array_hash_map.Auto(GlobalName, Symbol.Index),
...@@ -480,7 +480,7 @@ pub const Member = struct {...@@ -480,7 +480,7 @@ pub const Member = struct {
480 kind: std.coff.ArchiveMemberHeader.Kind,480 kind: std.coff.ArchiveMemberHeader.Kind,
481 header_ni: MappedFile.Node.Index,481 header_ni: MappedFile.Node.Index,
482 content_ni: MappedFile.Node.Index,482 content_ni: MappedFile.Node.Index,
483 first_linker_indices: std.AutoArrayHashMapUnmanaged(struct {483 first_linker_indices: std.array_hash_map.Auto(struct {
484 mi: Member.Index,484 mi: Member.Index,
485 name: String,485 name: String,
486 }, FirstLinkerIndex),486 }, FirstLinkerIndex),
...@@ -594,7 +594,7 @@ pub const Member = struct {...@@ -594,7 +594,7 @@ pub const Member = struct {
594594
595pub const LongNamesTable = struct {595pub const LongNamesTable = struct {
596 ni: MappedFile.Node.Index = .none,596 ni: MappedFile.Node.Index = .none,
597 entries: std.AutoArrayHashMapUnmanaged(void, Entry),597 entries: std.array_hash_map.Auto(void, Entry),
598598
599 pub const Entry = struct {599 pub const Entry = struct {
600 offset: u64,600 offset: u64,
...@@ -621,8 +621,8 @@ pub const LongNamesTable = struct {...@@ -621,8 +621,8 @@ pub const LongNamesTable = struct {
621pub const SymbolTable = struct {621pub const SymbolTable = struct {
622 ni: MappedFile.Node.Index,622 ni: MappedFile.Node.Index,
623 strings_ni: MappedFile.Node.Index,623 strings_ni: MappedFile.Node.Index,
624 strings: std.AutoArrayHashMapUnmanaged(String, StringIndex),624 strings: std.array_hash_map.Auto(String, StringIndex),
625 symbols: std.AutoArrayHashMapUnmanaged(Symbol.Index, SymbolTable.Index),625 symbols: std.array_hash_map.Auto(Symbol.Index, SymbolTable.Index),
626 pending_symbol_index: u32,626 pending_symbol_index: u32,
627627
628 // Resizing the symbol table node has the result of accumulating padding628 // Resizing the symbol table node has the result of accumulating padding
...@@ -681,7 +681,7 @@ pub const ExportTable = struct {...@@ -681,7 +681,7 @@ pub const ExportTable = struct {
681 name_pointer_table_ni: MappedFile.Node.Index,681 name_pointer_table_ni: MappedFile.Node.Index,
682 ordinal_table_ni: MappedFile.Node.Index,682 ordinal_table_ni: MappedFile.Node.Index,
683 name_table_ni: MappedFile.Node.Index,683 name_table_ni: MappedFile.Node.Index,
684 entries: std.AutoArrayHashMapUnmanaged(void, Entry),684 entries: std.array_hash_map.Auto(void, Entry),
685 pending_sort: bool = false,685 pending_sort: bool = false,
686686
687 pub const Entry = struct {687 pub const Entry = struct {
...@@ -719,7 +719,7 @@ pub const ExportTable = struct {...@@ -719,7 +719,7 @@ pub const ExportTable = struct {
719pub const ImportTable = struct {719pub const ImportTable = struct {
720 ni: MappedFile.Node.Index,720 ni: MappedFile.Node.Index,
721 entries: std.array_hash_map.Auto(void, Entry),721 entries: std.array_hash_map.Auto(void, Entry),
722 iat_symbol_indices: std.AutoArrayHashMapUnmanaged(struct {722 iat_symbol_indices: std.array_hash_map.Auto(struct {
723 iti: ImportTable.Index,723 iti: ImportTable.Index,
724 name: String.Optional,724 name: String.Optional,
725 // If name == .none this is the ordinal, otherwise the hint725 // If name == .none this is the ordinal, otherwise the hint
...@@ -2767,7 +2767,7 @@ const GlobalOptions = struct {...@@ -2767,7 +2767,7 @@ const GlobalOptions = struct {
2767fn getOrPutGlobalSymbol(2767fn getOrPutGlobalSymbol(
2768 coff: *Coff,2768 coff: *Coff,
2769 opts: GlobalOptions,2769 opts: GlobalOptions,
2770) !std.AutoArrayHashMapUnmanaged(GlobalName, Symbol.Index).GetOrPutResult {2770) !std.array_hash_map.Auto(GlobalName, Symbol.Index).GetOrPutResult {
2771 const comp = coff.base.comp;2771 const comp = coff.base.comp;
2772 const gpa = comp.gpa;2772 const gpa = comp.gpa;
2773 try coff.symbols.ensureUnusedCapacity(gpa, 1);2773 try coff.symbols.ensureUnusedCapacity(gpa, 1);
...@@ -4134,7 +4134,7 @@ fn loadObject(...@@ -4134,7 +4134,7 @@ fn loadObject(
4134 };4134 };
41354135
4136 var num_global_symbols: u32 = 0;4136 var num_global_symbols: u32 = 0;
4137 var pending_symbols: std.AutoArrayHashMapUnmanaged(u32, PendingSymbol) = .empty;4137 var pending_symbols: std.array_hash_map.Auto(u32, PendingSymbol) = .empty;
4138 defer pending_symbols.deinit(gpa);4138 defer pending_symbols.deinit(gpa);
4139 if (!is_archive)4139 if (!is_archive)
4140 try pending_symbols.ensureUnusedCapacity(gpa, header.number_of_symbols);4140 try pending_symbols.ensureUnusedCapacity(gpa, header.number_of_symbols);