diff options
| author | Benjamin Jurk <106487517+bnjmnjrk@users.noreply.github.com> | 2025-11-20 23:46:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-20 14:46:23 -0800 |
| commit | 4b5351bc0ddc248d6935d7d160a57cb4dfe4dedd (patch) | |
| tree | 8ce84d4e44a8ee1abaf0ef71d8287cec4b0f8c0a /src/codegen/x86_64/CodeGen.zig | |
| parent | db622f14c445b4f55981636543c546e22346abd5 (diff) | |
| download | zig-4b5351bc0ddc248d6935d7d160a57cb4dfe4dedd.tar.gz zig-4b5351bc0ddc248d6935d7d160a57cb4dfe4dedd.zip | |
update deprecated ArrayListUnmanaged usage (#25958)
Diffstat (limited to 'src/codegen/x86_64/CodeGen.zig')
| -rw-r--r-- | src/codegen/x86_64/CodeGen.zig | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/codegen/x86_64/CodeGen.zig b/src/codegen/x86_64/CodeGen.zig index b43b359de1..80798969eb 100644 --- a/src/codegen/x86_64/CodeGen.zig +++ b/src/codegen/x86_64/CodeGen.zig @@ -113,21 +113,21 @@ eflags_inst: ?Air.Inst.Index = null, /// MIR Instructions mir_instructions: std.MultiArrayList(Mir.Inst) = .empty, /// MIR extra data -mir_extra: std.ArrayListUnmanaged(u32) = .empty, -mir_string_bytes: std.ArrayListUnmanaged(u8) = .empty, +mir_extra: std.ArrayList(u32) = .empty, +mir_string_bytes: std.ArrayList(u8) = .empty, mir_strings: std.HashMapUnmanaged( u32, void, std.hash_map.StringIndexContext, std.hash_map.default_max_load_percentage, ) = .empty, -mir_locals: std.ArrayListUnmanaged(Mir.Local) = .empty, -mir_table: std.ArrayListUnmanaged(Mir.Inst.Index) = .empty, +mir_locals: std.ArrayList(Mir.Local) = .empty, +mir_table: std.ArrayList(Mir.Inst.Index) = .empty, /// The value is an offset into the `Function` `code` from the beginning. /// To perform the reloc, write 32-bit signed little-endian integer /// which is a relative jump, based on the address following the reloc. -epilogue_relocs: std.ArrayListUnmanaged(Mir.Inst.Index) = .empty, +epilogue_relocs: std.ArrayList(Mir.Inst.Index) = .empty, reused_operands: std.StaticBitSet(Air.Liveness.bpi - 1) = undefined, inst_tracking: InstTrackingMap = .empty, @@ -156,7 +156,7 @@ loop_switches: std.AutoHashMapUnmanaged(Air.Inst.Index, struct { min: Value, else_relocs: union(enum) { @"unreachable", - forward: std.ArrayListUnmanaged(Mir.Inst.Index), + forward: std.ArrayList(Mir.Inst.Index), backward: Mir.Inst.Index, }, }) = .empty, @@ -855,7 +855,7 @@ const FrameAlloc = struct { }; const BlockData = struct { - relocs: std.ArrayListUnmanaged(Mir.Inst.Index) = .empty, + relocs: std.ArrayList(Mir.Inst.Index) = .empty, state: State, fn deinit(self: *BlockData, gpa: Allocator) void { @@ -177329,7 +177329,7 @@ fn airAsm(self: *CodeGen, inst: Air.Inst.Index) !void { const Label = struct { target: Mir.Inst.Index = undefined, - pending_relocs: std.ArrayListUnmanaged(Mir.Inst.Index) = .empty, + pending_relocs: std.ArrayList(Mir.Inst.Index) = .empty, const Kind = enum { definition, reference }; |
