mirror of
https://github.com/ziglang/zig.git
synced 2026-02-18 07:18:38 +00:00
zld: remove redundant codepaths
This commit is contained in:
parent
ee173d5127
commit
e08f7ba889
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user