diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-09 20:53:37 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-15 10:55:46 +0200 |
| commit | ac9ca7d30c03f3111b6bb0a0bacade97d1f6f6df (patch) | |
| tree | 7aca7bd412b8ed9e823c74332e174e4bc1fad980 /src | |
| parent | 65affb1c225a034058fb2cbe32c289019b463ebf (diff) | |
| download | zig-ac9ca7d30c03f3111b6bb0a0bacade97d1f6f6df.tar.gz zig-ac9ca7d30c03f3111b6bb0a0bacade97d1f6f6df.zip | |
std.coff: Remove MachineType.fromTargetCpuArch().
This does the same thing as std.Target.Cpu.Arch.toCoffMachine(). Just use that.
Diffstat (limited to 'src')
| -rw-r--r-- | src/link/Coff.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Coff.zig b/src/link/Coff.zig index 73822dfec8..84fc4bb6ee 100644 --- a/src/link/Coff.zig +++ b/src/link/Coff.zig @@ -2259,7 +2259,7 @@ fn writeHeader(self: *Coff) !void { const timestamp = if (self.repro) 0 else std.time.timestamp(); const size_of_optional_header = @as(u16, @intCast(self.getOptionalHeaderSize() + self.getDataDirectoryHeadersSize())); var coff_header = coff.CoffHeader{ - .machine = coff.MachineType.fromTargetCpuArch(target.cpu.arch), + .machine = target.cpu.arch.toCoffMachine(), .number_of_sections = @as(u16, @intCast(self.sections.slice().len)), // TODO what if we prune a section .time_date_stamp = @as(u32, @truncate(@as(u64, @bitCast(timestamp)))), .pointer_to_symbol_table = self.strtab_offset orelse 0, |
