aboutsummaryrefslogtreecommitdiff
path: root/src/link/MachO/UnwindInfo.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2024-01-11 21:30:32 +0100
committerJakub Konka <kubkon@jakubkonka.com>2024-01-24 12:34:39 +0100
commit32ebceea95d22d399bc979370e5ce4cc3ca7d0ef (patch)
tree397c1dec33bff0a83584cc9602e05864d7e33da9 /src/link/MachO/UnwindInfo.zig
parent0b2231998f5b95845c8414083622ec7913d60af6 (diff)
downloadzig-32ebceea95d22d399bc979370e5ce4cc3ca7d0ef.tar.gz
zig-32ebceea95d22d399bc979370e5ce4cc3ca7d0ef.zip
macho: sort sections; use Atom.Alignment for alignment; init segments
Diffstat (limited to 'src/link/MachO/UnwindInfo.zig')
-rw-r--r--src/link/MachO/UnwindInfo.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link/MachO/UnwindInfo.zig b/src/link/MachO/UnwindInfo.zig
index 8a5e3661eb..a993809fd1 100644
--- a/src/link/MachO/UnwindInfo.zig
+++ b/src/link/MachO/UnwindInfo.zig
@@ -26,7 +26,7 @@ pub fn deinit(info: *UnwindInfo, allocator: Allocator) void {
}
fn canFold(macho_file: *MachO, lhs_index: Record.Index, rhs_index: Record.Index) bool {
- const cpu_arch = macho_file.options.cpu_arch.?;
+ const cpu_arch = macho_file.getTarget().cpu.arch;
const lhs = macho_file.getUnwindRecord(lhs_index);
const rhs = macho_file.getUnwindRecord(rhs_index);
if (cpu_arch == .x86_64) {
@@ -42,7 +42,7 @@ fn canFold(macho_file: *MachO, lhs_index: Record.Index, rhs_index: Record.Index)
}
pub fn generate(info: *UnwindInfo, macho_file: *MachO) !void {
- const gpa = macho_file.base.allocator;
+ const gpa = macho_file.base.comp.gpa;
log.debug("generating unwind info", .{});