瀏覽代碼

+ generate and write the Type section in the WebAssembly internal exe writer

Nikolay Nikolov 1 年之前
父節點
當前提交
2c72b62a0e
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/ogwasm.pas

+ 4 - 1
compiler/ogwasm.pas

@@ -4052,10 +4052,13 @@ implementation
       begin
         result:=false;
 
-        {TODO: implement}
+        FFuncTypes.WriteTo(FWasmSections[wsiType]);
+
+        {...}
 
         Writer.write(WasmModuleMagic,SizeOf(WasmModuleMagic));
         Writer.write(WasmVersion,SizeOf(WasmVersion));
+        WriteWasmSection(wsiType);
 
         result := true;
       end;