zld: remove redundant codepaths

This commit is contained in:
Jakub Konka 2021-06-30 16:59:26 +02:00
parent ee173d5127
commit e08f7ba889

View File

@ -964,18 +964,6 @@ fn linkWithZld(self: *MachO, comp: *Compilation) !void {
}
}
fn darwinArchString(arch: std.Target.Cpu.Arch) []const u8 {
return switch (arch) {
.aarch64, .aarch64_be, .aarch64_32 => "arm64",
.thumb, .arm => "arm",
.thumbeb, .armeb => "armeb",
.powerpc => "ppc",
.powerpc64 => "ppc64",
.powerpc64le => "ppc64le",
else => @tagName(arch),
};
}
pub fn deinit(self: *MachO) void {
if (self.d_sym) |*ds| {
ds.deinit(self.base.allocator);