x86_64: move end of prologue to after function arguments are spilled

This prevents the first step in to a function from displaying bogus
argument values.
This commit is contained in:
Jacob Young 2024-08-16 14:42:50 -04:00
parent 7a0acc8be6
commit ad634537ce

View File

@ -222,13 +222,7 @@ pub fn emitMir(emit: *Emit) Error!void {
else => unreachable,
.pseudo_dbg_prologue_end_none => {
switch (emit.debug_output) {
.dwarf => |dw| {
try dw.setPrologueEnd();
log.debug("mirDbgPrologueEnd (line={d}, col={d})", .{
emit.prev_di_line, emit.prev_di_column,
});
try emit.dbgAdvancePCAndLine(emit.prev_di_line, emit.prev_di_column);
},
.dwarf => |dw| try dw.setPrologueEnd(),
.plan9 => {},
.none => {},
}