mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 04:09:06 +02:00
* moved the insertion of the wasm locals asmlist to a local subroutine
This commit is contained in:
parent
0e39e7c12d
commit
e81cff0408
@ -674,12 +674,17 @@ implementation
|
|||||||
local.last:=true;
|
local.last:=true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure insert_localslist(destlist,localslist: TAsmList);
|
||||||
|
begin
|
||||||
|
destlist.insertListAfter(findfirst_tai_functype(destlist),localslist);
|
||||||
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
localslist: TAsmList;
|
localslist: TAsmList;
|
||||||
labels_resolved: Boolean;
|
labels_resolved: Boolean;
|
||||||
begin
|
begin
|
||||||
localslist:=prepare_locals;
|
localslist:=prepare_locals;
|
||||||
aktproccode.insertListAfter(findfirst_tai_functype(aktproccode),localslist);
|
insert_localslist(aktproccode,localslist);
|
||||||
localslist.Free;
|
localslist.Free;
|
||||||
|
|
||||||
replace_local_frame_pointer(aktproccode);
|
replace_local_frame_pointer(aktproccode);
|
||||||
|
Loading…
Reference in New Issue
Block a user