mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 10:39:09 +02:00
+ WebAssembly: insert a tai_local directive also for assembler functions
This commit is contained in:
parent
80523e192a
commit
1a08d76ccb
@ -973,12 +973,20 @@ implementation
|
|||||||
vs.Free;
|
vs.Free;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure postprocess_code_assembler;
|
||||||
|
begin
|
||||||
|
aktproccode.InsertAfter(tai_local.create([]),findfirst_tai_functype(aktproccode));
|
||||||
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
localslist: TAsmList;
|
localslist: TAsmList;
|
||||||
labels_resolved, has_goto: Boolean;
|
labels_resolved, has_goto: Boolean;
|
||||||
begin
|
begin
|
||||||
if po_assembler in procdef.procoptions then
|
if po_assembler in procdef.procoptions then
|
||||||
exit;
|
begin
|
||||||
|
postprocess_code_assembler;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
check_goto_br_instructions(aktproccode,has_goto);
|
check_goto_br_instructions(aktproccode,has_goto);
|
||||||
|
|
||||||
localslist:=prepare_locals;
|
localslist:=prepare_locals;
|
||||||
|
Loading…
Reference in New Issue
Block a user