authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-08-17 08:31:16+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-08-17 08:31:16+02:00
logdf9ac485da7c59ddb5dc65e192d5902baf975ddd
tree03670257529c98e11f48b4e48f9274f250c42693
parent96441bd829b731cba080753c4833aff3f672a24a

codegen: fix rebase gone wrong


1 files changed, 2 insertions(+), 2 deletions(-)

src/codegen.zig+2-2
...@@ -911,14 +911,14 @@ fn genNavRef(...@@ -911,14 +911,14 @@ fn genNavRef(
911 if (is_extern) {911 if (is_extern) {
912 const sym_index = try macho_file.getGlobalSymbol(name.toSlice(ip), lib_name.toSlice(ip));912 const sym_index = try macho_file.getGlobalSymbol(name.toSlice(ip), lib_name.toSlice(ip));
913 zo.symbols.items[sym_index].flags.is_extern_ptr = true;913 zo.symbols.items[sym_index].flags.is_extern_ptr = true;
914 return GenResult.mcv(.{ .lea_symbol = sym_index });914 return .{ .mcv = .{ .lea_symbol = sym_index } };
915 }915 }
916 const sym_index = try zo.getOrCreateMetadataForNav(macho_file, nav_index);916 const sym_index = try zo.getOrCreateMetadataForNav(macho_file, nav_index);
917 const sym = zo.symbols.items[sym_index];917 const sym = zo.symbols.items[sym_index];
918 if (!single_threaded and is_threadlocal) {918 if (!single_threaded and is_threadlocal) {
919 return .{ .mcv = .{ .load_tlv = sym.nlist_idx } };919 return .{ .mcv = .{ .load_tlv = sym.nlist_idx } };
920 }920 }
921 return GenResult.mcv(.{ .lea_symbol = sym.nlist_idx });921 return .{ .mcv = .{ .lea_symbol = sym.nlist_idx } };
922 } else if (lf.cast(.coff)) |coff_file| {922 } else if (lf.cast(.coff)) |coff_file| {
923 if (is_extern) {923 if (is_extern) {
924 // TODO audit this924 // TODO audit this