Skip to content

Commit a446101

Browse files
jacobly0andrewrk
authored andcommitted
x86_64: enable struct field reordering
The blocker for enabling this feature was my need to debug the emitted assembly without debug info and having to manually inspect memory to determine struct contents. However, we now have debug info! (lldb) v -L foo bar 0x00007fffffffda20: (repro.repro.Foo) foo = { 0x00007fffffffda24: .x = 12 0x00007fffffffda20: .y = 34 } 0x00007fffffffda28: (repro.repro.Bar) bar = { 0x00007fffffffda28: .x = 56 0x00007fffffffda2c: .y = 78 } Updates #21530
1 parent 3dadb8c commit a446101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ pub inline fn backendSupportsFeature(backend: std.builtin.CompilerBackend, compt
720720
else => false,
721721
},
722722
.field_reordering => switch (backend) {
723-
.stage2_c, .stage2_llvm => true,
723+
.stage2_c, .stage2_llvm, .stage2_x86_64 => true,
724724
else => false,
725725
},
726726
.safety_checked_instructions => switch (backend) {

0 commit comments

Comments
 (0)