mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:09:20 +02:00
+ introduced private type TCustomSectionNameMapEntry to class TWasmExeOutput
This commit is contained in:
parent
ffd461860b
commit
2ee8a59fbd
@ -260,6 +260,12 @@ interface
|
|||||||
'.data',
|
'.data',
|
||||||
'fpc.resources');
|
'fpc.resources');
|
||||||
WasmPageSize = 65536;
|
WasmPageSize = 65536;
|
||||||
|
|
||||||
|
type
|
||||||
|
TCustomSectionNameMapEntry = record
|
||||||
|
idx: UInt32;
|
||||||
|
name: string;
|
||||||
|
end;
|
||||||
private
|
private
|
||||||
FImports: TFPHashObjectList;
|
FImports: TFPHashObjectList;
|
||||||
FFuncTypes: TWasmFuncTypeTable;
|
FFuncTypes: TWasmFuncTypeTable;
|
||||||
@ -289,10 +295,7 @@ interface
|
|||||||
FMinMemoryPages,
|
FMinMemoryPages,
|
||||||
FMaxMemoryPages: Integer;
|
FMaxMemoryPages: Integer;
|
||||||
{ use for the Name section }
|
{ use for the Name section }
|
||||||
FFunctionNameMap: array of record
|
FFunctionNameMap: array of TCustomSectionNameMapEntry;
|
||||||
idx: UInt32;
|
|
||||||
name: string;
|
|
||||||
end;
|
|
||||||
procedure AddToFunctionNameMap(aidx: UInt32; const aname: string);
|
procedure AddToFunctionNameMap(aidx: UInt32; const aname: string);
|
||||||
procedure WriteWasmSection(wsid: TWasmSectionID);
|
procedure WriteWasmSection(wsid: TWasmSectionID);
|
||||||
procedure WriteWasmSectionIfNotEmpty(wsid: TWasmSectionID);
|
procedure WriteWasmSectionIfNotEmpty(wsid: TWasmSectionID);
|
||||||
|
Loading…
Reference in New Issue
Block a user