mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 15:29:14 +02:00
+ introduced tcpuprocdef.add_promising_export
This commit is contained in:
parent
601c8f9c8b
commit
c67bcf0032
@ -251,12 +251,7 @@ var
|
|||||||
begin
|
begin
|
||||||
pd:=tcpuprocdef(tprocsym(hp.sym).ProcdefList[0]);
|
pd:=tcpuprocdef(tprocsym(hp.sym).ProcdefList[0]);
|
||||||
if eo_promising_first in hp.options then
|
if eo_promising_first in hp.options then
|
||||||
begin
|
pd.add_promising_export(hp.name^,false)
|
||||||
if (pd.synthetickind<>tsk_none) and (pd.synthetickind<>tsk_wasm_promising) then
|
|
||||||
internalerror(2023061301);
|
|
||||||
pd.synthetickind:=tsk_wasm_promising;
|
|
||||||
pd.promising_export_name:=hp.name^;
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
nm := pd.mangledname;
|
nm := pd.mangledname;
|
||||||
|
@ -123,6 +123,7 @@ type
|
|||||||
function is_pushleftright: boolean; override;
|
function is_pushleftright: boolean; override;
|
||||||
function suspending_wrapper_name: ansistring;
|
function suspending_wrapper_name: ansistring;
|
||||||
function promising_wrapper_name: ansistring;
|
function promising_wrapper_name: ansistring;
|
||||||
|
procedure add_promising_export(aextname: ansistring;last:boolean);
|
||||||
end;
|
end;
|
||||||
tcpuprocdefclass = class of tcpuprocdef;
|
tcpuprocdefclass = class of tcpuprocdef;
|
||||||
|
|
||||||
@ -387,6 +388,15 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure tcpuprocdef.add_promising_export(aextname: ansistring; last: boolean);
|
||||||
|
begin
|
||||||
|
if (synthetickind<>tsk_none) and (synthetickind<>tsk_wasm_promising) then
|
||||||
|
internalerror(2023061301);
|
||||||
|
synthetickind:=tsk_wasm_promising;
|
||||||
|
promising_export_name:=aextname;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
tcpuprocvardef
|
tcpuprocvardef
|
||||||
****************************************************************************}
|
****************************************************************************}
|
||||||
|
Loading…
Reference in New Issue
Block a user