mirror of
https://github.com/ziglang/zig.git
synced 2025-12-21 13:43:10 +00:00
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:
parent
7a0acc8be6
commit
ad634537ce
@ -222,13 +222,7 @@ pub fn emitMir(emit: *Emit) Error!void {
|
|||||||
else => unreachable,
|
else => unreachable,
|
||||||
.pseudo_dbg_prologue_end_none => {
|
.pseudo_dbg_prologue_end_none => {
|
||||||
switch (emit.debug_output) {
|
switch (emit.debug_output) {
|
||||||
.dwarf => |dw| {
|
.dwarf => |dw| try dw.setPrologueEnd(),
|
||||||
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);
|
|
||||||
},
|
|
||||||
.plan9 => {},
|
.plan9 => {},
|
||||||
.none => {},
|
.none => {},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user