From 355992cbdff96db66dd79e8bbbee04cb081f683f Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Tue, 9 Jul 2024 11:34:38 +0200 Subject: macho: migrate some of MachO driver --- src/link/MachO/Object.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/link/MachO/Object.zig') diff --git a/src/link/MachO/Object.zig b/src/link/MachO/Object.zig index 17dd198c6b..a668b932d9 100644 --- a/src/link/MachO/Object.zig +++ b/src/link/MachO/Object.zig @@ -259,6 +259,8 @@ pub fn parse(self: *Object, macho_file: *MachO) !void { // } } + try self.parseDebugInfo(macho_file); + for (self.atoms.items) |atom_index| { const atom = self.getAtom(atom_index) orelse continue; const isec = atom.getInputSection(macho_file); @@ -1317,7 +1319,7 @@ fn parseUnwindRecords(self: *Object, allocator: Allocator, cpu_arch: std.Target. /// and record that so that we can emit symbol stabs. /// TODO in the future, we want parse debug info and debug line sections so that /// we can provide nice error locations to the user. -pub fn parseDebugInfo(self: *Object, macho_file: *MachO) !void { +fn parseDebugInfo(self: *Object, macho_file: *MachO) !void { const tracy = trace(@src()); defer tracy.end(); -- cgit v1.2.3