mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 13:30:42 +02:00
+ added and implemented TWasmExeOutput.WriteWasmSection
This commit is contained in:
parent
c342a5f473
commit
7d6158d5f4
@ -231,6 +231,7 @@ interface
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
FWasmSections: array [TWasmSectionID] of tdynamicarray;
|
FWasmSections: array [TWasmSectionID] of tdynamicarray;
|
||||||
|
procedure WriteWasmSection(wsid: TWasmSectionID);
|
||||||
protected
|
protected
|
||||||
function writeData:boolean;override;
|
function writeData:boolean;override;
|
||||||
procedure DoRelocationFixup(objsec:TObjSection);override;
|
procedure DoRelocationFixup(objsec:TObjSection);override;
|
||||||
@ -4032,6 +4033,16 @@ implementation
|
|||||||
TWasmExeOutput
|
TWasmExeOutput
|
||||||
****************************************************************************}
|
****************************************************************************}
|
||||||
|
|
||||||
|
procedure TWasmExeOutput.WriteWasmSection(wsid: TWasmSectionID);
|
||||||
|
var
|
||||||
|
b: byte;
|
||||||
|
begin
|
||||||
|
b:=ord(wsid);
|
||||||
|
Writer.write(b,1);
|
||||||
|
WriteUleb(Writer,FWasmSections[wsid].size);
|
||||||
|
Writer.writearray(FWasmSections[wsid]);
|
||||||
|
end;
|
||||||
|
|
||||||
function TWasmExeOutput.writeData: boolean;
|
function TWasmExeOutput.writeData: boolean;
|
||||||
begin
|
begin
|
||||||
result:=false;
|
result:=false;
|
||||||
|
Loading…
Reference in New Issue
Block a user