소스 검색

+ introduced TWasmCustomDebugSectionType

Nikolay Nikolov 3 년 전
부모
커밋
efd92fba01
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      compiler/ogwasm.pas
  2. 2 0
      compiler/wasmbase.pas

+ 2 - 2
compiler/ogwasm.pas

@@ -1382,7 +1382,7 @@ implementation
       var
         section_nr: Integer;
 
-        procedure MaybeAddDebugSectionToSymbolTable(const sn: string; st: TWasmCustomSectionType; var debug_section_nr: Integer);
+        procedure MaybeAddDebugSectionToSymbolTable(const sn: string; st: TWasmCustomDebugSectionType; var debug_section_nr: Integer);
           var
             objsec: TWasmObjSection;
           begin
@@ -1399,7 +1399,7 @@ implementation
               end;
           end;
 
-        procedure MaybeWriteDebugSection(const sn: string; st: TWasmCustomSectionType);
+        procedure MaybeWriteDebugSection(const sn: string; st: TWasmCustomDebugSectionType);
           var
             objsec: TWasmObjSection;
           begin

+ 2 - 0
compiler/wasmbase.pas

@@ -69,6 +69,8 @@ type
     wcstRelocDebugRanges,
     wcstRelocDebugStr);
 
+  TWasmCustomDebugSectionType = wcstDebugFrame..wcstDebugStr;
+
 const
   WasmCustomSectionName: array [TWasmCustomSectionType] of string =
     ('linking',