소스 검색

* WebAssembly internal linker: moved the DataSections const array from local to
the method writeData to local to the class. No functional changes.

Nikolay Nikolov 1 년 전
부모
커밋
cfa7d6a0c6
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 6 5
      compiler/ogwasm.pas

+ 6 - 5
compiler/ogwasm.pas

@@ -247,6 +247,12 @@ interface
       { TWasmExeOutput }
 
       TWasmExeOutput = class(TExeOutput)
+      private
+        const
+          DataSections: array [1..3] of string = (
+            '.rodata',
+            '.data',
+            'fpc.resources');
       private
         FImports: TFPHashObjectList;
         FFuncTypes: TWasmFuncTypeTable;
@@ -4705,11 +4711,6 @@ implementation
               internalerror(2024010107);
           end;
 
-        const
-          DataSections: array [1..3] of string = (
-            '.rodata',
-            '.data',
-            'fpc.resources');
         var
           DataCount: Integer;
           DataSecName: string;