mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 04:09:15 +02:00
* extracted the import preparation to a separate method TWasmExeOutput.PrepareImports
This commit is contained in:
parent
946fc370e9
commit
f5dbd38b7e
@ -230,6 +230,7 @@ interface
|
||||
|
||||
FWasmSections: array [TWasmSectionID] of tdynamicarray;
|
||||
procedure WriteWasmSection(wsid: TWasmSectionID);
|
||||
procedure PrepareImports;
|
||||
protected
|
||||
function writeData:boolean;override;
|
||||
procedure DoRelocationFixup(objsec:TObjSection);override;
|
||||
@ -4169,6 +4170,11 @@ implementation
|
||||
end;
|
||||
|
||||
procedure TWasmExeOutput.AfterUnusedSectionRemoval;
|
||||
begin
|
||||
PrepareImports;
|
||||
end;
|
||||
|
||||
procedure TWasmExeOutput.PrepareImports;
|
||||
|
||||
function AddFunctionImport(const libname,symname:TCmdStr; functype: TWasmFuncType): Integer;
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user