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,
2525mf: MappedFile,
2626nodes: std.MultiArrayList(Node),
2727members: std.ArrayList(Member),
28pending_members: std.AutoArrayHashMapUnmanaged(Member.Index, void),
28pending_members: std.array_hash_map.Auto(Member.Index, void),
2929lib_string_table: std.ArrayList(String),
3030lib_string_len: u32,
3131long_names_table: LongNamesTable,
3232import_table: ImportTable,
3333export_table: ExportTable,
3434symbol_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),
3636input_archives: std.ArrayList(InputArchive),
3737input_archive_members: std.ArrayList(InputArchive.Member),
3838input_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),
4040pending_input: ?InputArchive.Member.Index,
4141pending_default_libs: std.ArrayList(struct {
4242 path: []const u8,
4343 ioi: InputObject.Index,
4444}),
45alternate_names: std.AutoArrayHashMapUnmanaged(String, String),
45alternate_names: std.array_hash_map.Auto(String, String),
4646input_objects: std.ArrayList(InputObject),
4747input_symbols: std.ArrayList(struct { si: Symbol.Index, name: String }),
4848input_sections: std.ArrayList(Node.InputSection),
......@@ -57,10 +57,10 @@ strings: std.HashMapUnmanaged(
5757 std.hash_map.default_max_load_percentage,
5858),
5959string_bytes: std.ArrayList(u8),
60section_table: std.AutoArrayHashMapUnmanaged(String, Section),
60section_table: std.array_hash_map.Auto(String, Section),
6161pseudo_section_table: std.array_hash_map.Auto(String, Symbol.Index),
6262object_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),
6464section_merge_pending_index: u32,
6565symbols: std.ArrayList(Symbol),
6666globals: std.array_hash_map.Auto(GlobalName, Symbol.Index),
......@@ -480,7 +480,7 @@ pub const Member = struct {
480480 kind: std.coff.ArchiveMemberHeader.Kind,
481481 header_ni: MappedFile.Node.Index,
482482 content_ni: MappedFile.Node.Index,
483 first_linker_indices: std.AutoArrayHashMapUnmanaged(struct {
483 first_linker_indices: std.array_hash_map.Auto(struct {
484484 mi: Member.Index,
485485 name: String,
486486 }, FirstLinkerIndex),
......@@ -594,7 +594,7 @@ pub const Member = struct {
594594
595595pub const LongNamesTable = struct {
596596 ni: MappedFile.Node.Index = .none,
597 entries: std.AutoArrayHashMapUnmanaged(void, Entry),
597 entries: std.array_hash_map.Auto(void, Entry),
598598
599599 pub const Entry = struct {
600600 offset: u64,
......@@ -621,8 +621,8 @@ pub const LongNamesTable = struct {
621621pub const SymbolTable = struct {
622622 ni: MappedFile.Node.Index,
623623 strings_ni: MappedFile.Node.Index,
624 strings: std.AutoArrayHashMapUnmanaged(String, StringIndex),
625 symbols: std.AutoArrayHashMapUnmanaged(Symbol.Index, SymbolTable.Index),
624 strings: std.array_hash_map.Auto(String, StringIndex),
625 symbols: std.array_hash_map.Auto(Symbol.Index, SymbolTable.Index),
626626 pending_symbol_index: u32,
627627
628628 // Resizing the symbol table node has the result of accumulating padding
......@@ -681,7 +681,7 @@ pub const ExportTable = struct {
681681 name_pointer_table_ni: MappedFile.Node.Index,
682682 ordinal_table_ni: MappedFile.Node.Index,
683683 name_table_ni: MappedFile.Node.Index,
684 entries: std.AutoArrayHashMapUnmanaged(void, Entry),
684 entries: std.array_hash_map.Auto(void, Entry),
685685 pending_sort: bool = false,
686686
687687 pub const Entry = struct {
......@@ -719,7 +719,7 @@ pub const ExportTable = struct {
719719pub const ImportTable = struct {
720720 ni: MappedFile.Node.Index,
721721 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 {
723723 iti: ImportTable.Index,
724724 name: String.Optional,
725725 // If name == .none this is the ordinal, otherwise the hint
......@@ -2767,7 +2767,7 @@ const GlobalOptions = struct {
27672767fn getOrPutGlobalSymbol(
27682768 coff: *Coff,
27692769 opts: GlobalOptions,
2770) !std.AutoArrayHashMapUnmanaged(GlobalName, Symbol.Index).GetOrPutResult {
2770) !std.array_hash_map.Auto(GlobalName, Symbol.Index).GetOrPutResult {
27712771 const comp = coff.base.comp;
27722772 const gpa = comp.gpa;
27732773 try coff.symbols.ensureUnusedCapacity(gpa, 1);
......@@ -4134,7 +4134,7 @@ fn loadObject(
41344134 };
41354135
41364136 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;
41384138 defer pending_symbols.deinit(gpa);
41394139 if (!is_archive)
41404140 try pending_symbols.ensureUnusedCapacity(gpa, header.number_of_symbols);