diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-02 14:50:41 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-02 14:50:41 -0700 |
| commit | a13f0d40eb0109e993d37ef4be9107a57e821bc9 (patch) | |
| tree | 1a9b6c0a19c2ed2d52a75040faa0e29ab237a0ce /src/codegen.zig | |
| parent | 20a543097bb9135137ef8e8eb09e129152220dff (diff) | |
| download | zig-a13f0d40eb0109e993d37ef4be9107a57e821bc9.tar.gz zig-a13f0d40eb0109e993d37ef4be9107a57e821bc9.zip | |
compiler: delete arm backend
this backend was abandoned before it was completed, and it is not worth
salvaging.
Diffstat (limited to 'src/codegen.zig')
| -rw-r--r-- | src/codegen.zig | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/codegen.zig b/src/codegen.zig index cad833a3bd..8569a491b6 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -49,7 +49,7 @@ fn importBackend(comptime backend: std.builtin.CompilerBackend) type { return switch (backend) { .other, .stage1 => unreachable, .stage2_aarch64 => unreachable, - .stage2_arm => @import("arch/arm/CodeGen.zig"), + .stage2_arm => unreachable, .stage2_c => @import("codegen/c.zig"), .stage2_llvm => @import("codegen/llvm.zig"), .stage2_powerpc => unreachable, @@ -70,7 +70,6 @@ pub fn legalizeFeatures(pt: Zcu.PerThread, nav_index: InternPool.Nav.Index) ?*co inline .stage2_llvm, .stage2_c, .stage2_wasm, - .stage2_arm, .stage2_x86_64, .stage2_x86, .stage2_riscv64, @@ -87,7 +86,6 @@ pub fn legalizeFeatures(pt: Zcu.PerThread, nav_index: InternPool.Nav.Index) ?*co /// MIR from codegen to the linker *regardless* of which backend is in use. So, we use this: a /// union of all MIR types. The active tag is known from the backend in use; see `AnyMir.tag`. pub const AnyMir = union { - arm: @import("arch/arm/Mir.zig"), riscv64: @import("arch/riscv64/Mir.zig"), sparc64: @import("arch/sparc64/Mir.zig"), x86_64: @import("arch/x86_64/Mir.zig"), @@ -112,8 +110,7 @@ pub const AnyMir = union { const backend = target_util.zigBackend(&zcu.root_mod.resolved_target.result, zcu.comp.config.use_llvm); switch (backend) { else => unreachable, - inline .stage2_arm, - .stage2_riscv64, + inline .stage2_riscv64, .stage2_sparc64, .stage2_x86_64, .stage2_wasm, @@ -141,8 +138,7 @@ pub fn generateFunction( const target = &zcu.navFileScope(func.owner_nav).mod.?.resolved_target.result; switch (target_util.zigBackend(target, false)) { else => unreachable, - inline .stage2_arm, - .stage2_riscv64, + inline .stage2_riscv64, .stage2_sparc64, .stage2_x86_64, .stage2_wasm, @@ -177,8 +173,7 @@ pub fn emitFunction( const target = &zcu.navFileScope(func.owner_nav).mod.?.resolved_target.result; switch (target_util.zigBackend(target, zcu.comp.config.use_llvm)) { else => unreachable, - inline .stage2_arm, - .stage2_riscv64, + inline .stage2_riscv64, .stage2_sparc64, .stage2_x86_64, => |backend| { |
