+ added a section array to the wasm exe writer

This commit is contained in:
Nikolay Nikolov 2023-12-31 22:27:05 +02:00
parent 16c4e0300c
commit b2f31c4112

View File

@ -235,6 +235,7 @@ interface
TypeIdx: uint32;
end;
FWasmSections: array [TWasmSectionID] of tdynamicarray;
protected
function writeData:boolean;override;
procedure DoRelocationFixup(objsec:TObjSection);override;
@ -4063,7 +4064,11 @@ implementation
end;
destructor TWasmExeOutput.destroy;
var
i: TWasmSectionID;
begin
for i in TWasmSectionID do
FWasmSections[i].Free;
FFuncTypes.Free;
inherited destroy;
end;