mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 12:19:18 +02:00
+ introduced method TWasmExeOutput.AddToGlobalNameMap
This commit is contained in:
parent
7c545cfa8b
commit
b5d0cd57ed
@ -297,8 +297,10 @@ interface
|
|||||||
FMaxMemoryPages: Integer;
|
FMaxMemoryPages: Integer;
|
||||||
{ use for the Name section }
|
{ use for the Name section }
|
||||||
FFunctionNameMap: TCustomSectionNameMap;
|
FFunctionNameMap: TCustomSectionNameMap;
|
||||||
|
FGlobalNameMap: TCustomSectionNameMap;
|
||||||
procedure AddToNameMap(var nm: TCustomSectionNameMap; aidx: UInt32; const aname: string);
|
procedure AddToNameMap(var nm: TCustomSectionNameMap; aidx: UInt32; const aname: string);
|
||||||
procedure AddToFunctionNameMap(aidx: UInt32; const aname: string);
|
procedure AddToFunctionNameMap(aidx: UInt32; const aname: string);
|
||||||
|
procedure AddToGlobalNameMap(aidx: UInt32; const aname: string);
|
||||||
procedure WriteWasmSection(wsid: TWasmSectionID);
|
procedure WriteWasmSection(wsid: TWasmSectionID);
|
||||||
procedure WriteWasmSectionIfNotEmpty(wsid: TWasmSectionID);
|
procedure WriteWasmSectionIfNotEmpty(wsid: TWasmSectionID);
|
||||||
procedure WriteWasmCustomSection(wcst: TWasmCustomSectionType);
|
procedure WriteWasmCustomSection(wcst: TWasmCustomSectionType);
|
||||||
@ -4791,6 +4793,11 @@ implementation
|
|||||||
AddToNameMap(FFunctionNameMap,aidx,aname);
|
AddToNameMap(FFunctionNameMap,aidx,aname);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TWasmExeOutput.AddToGlobalNameMap(aidx: UInt32; const aname: string);
|
||||||
|
begin
|
||||||
|
AddToNameMap(FGlobalNameMap,aidx,aname);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TWasmExeOutput.WriteWasmSection(wsid: TWasmSectionID);
|
procedure TWasmExeOutput.WriteWasmSection(wsid: TWasmSectionID);
|
||||||
var
|
var
|
||||||
b: byte;
|
b: byte;
|
||||||
|
Loading…
Reference in New Issue
Block a user