* fixed local var dwarf debug info output for WebAssembly

git-svn-id: branches/wasm@48448 -
This commit is contained in:
nickysn 2021-01-28 17:15:14 +00:00
parent fa30ae7d97
commit af12279bed

View File

@ -1058,12 +1058,14 @@ implementation
function TDebugInfoDwarf.is_fbreg(reg: tregister): boolean;
begin
{$ifdef i8086}
{$if defined(i8086)}
result:=reg=NR_BP;
{$else i8086}
{$elseif defined(wasm)}
result:=reg=NR_LOCAL_FRAME_POINTER_REG;
{$else}
{ always return false, because we don't emit DW_AT_frame_base attributes yet }
result:=false;
{$endif i8086}
{$endif}
end;
function TDebugInfoDwarf.def_dwarf_lab(def: tdef): tasmsymbol;