diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-12-06 19:29:23 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-12-09 09:24:25 +0100 |
| commit | f5c764d8923d301bb7e46b50cb034285640fcca2 (patch) | |
| tree | e573f5faca2995d766b56e1e001989a343ff08b3 /src/link/MachO | |
| parent | 4c4821d9939447d65966b897a5780e39eb22334b (diff) | |
| download | zig-f5c764d8923d301bb7e46b50cb034285640fcca2.tar.gz zig-f5c764d8923d301bb7e46b50cb034285640fcca2.zip | |
dwarf: track source files via *const Module.File pointers
Diffstat (limited to 'src/link/MachO')
| -rw-r--r-- | src/link/MachO/DebugSymbols.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/link/MachO/DebugSymbols.zig b/src/link/MachO/DebugSymbols.zig index c4ce8e4223..e198f474c8 100644 --- a/src/link/MachO/DebugSymbols.zig +++ b/src/link/MachO/DebugSymbols.zig @@ -213,7 +213,7 @@ pub fn flushModule(self: *DebugSymbols, macho_file: *MachO) !void { } if (self.debug_abbrev_section_dirty) { - try self.dwarf.writeDbgAbbrev(&macho_file.base); + try self.dwarf.writeDbgAbbrev(); self.debug_abbrev_section_dirty = false; } @@ -223,7 +223,7 @@ pub fn flushModule(self: *DebugSymbols, macho_file: *MachO) !void { const text_section = macho_file.sections.items(.header)[macho_file.text_section_index.?]; const low_pc = text_section.addr; const high_pc = text_section.addr + text_section.size; - try self.dwarf.writeDbgInfoHeader(&macho_file.base, module, low_pc, high_pc); + try self.dwarf.writeDbgInfoHeader(module, low_pc, high_pc); self.debug_info_header_dirty = false; } @@ -231,12 +231,12 @@ pub fn flushModule(self: *DebugSymbols, macho_file: *MachO) !void { // Currently only one compilation unit is supported, so the address range is simply // identical to the main program header virtual address and memory size. const text_section = macho_file.sections.items(.header)[macho_file.text_section_index.?]; - try self.dwarf.writeDbgAranges(&macho_file.base, text_section.addr, text_section.size); + try self.dwarf.writeDbgAranges(text_section.addr, text_section.size); self.debug_aranges_section_dirty = false; } if (self.debug_line_header_dirty) { - try self.dwarf.writeDbgLineHeader(&macho_file.base, module); + try self.dwarf.writeDbgLineHeader(module); self.debug_line_header_dirty = false; } |
