Parcourir la source

- removed debug writelns from the wasm internal object writer

Nikolay Nikolov il y a 3 ans
Parent
commit
2102fbdc97
1 fichiers modifiés avec 0 ajouts et 21 suppressions
  1. 0 21
      compiler/ogwasm.pas

+ 0 - 21
compiler/ogwasm.pas

@@ -953,8 +953,6 @@ implementation
                         internalerror(2021092605);
                       if not (IsExternalFunction(objrel.symbol) or (objrel.symbol.typ=AT_FUNCTION) or (objrel.symbol.bind=AB_EXTERNAL)) then
                         begin
-                          Writeln('!!!', objrel.symbol.Name);
-                          Writeln(assigned(objrel.symbol.objsection));
                           objsec.Data.seek(objrel.DataOffset);
                           AddSleb5(objsec.Data,objrel.symbol.offset+TWasmObjSection(objrel.symbol.objsection).SegOfs);
                         end;
@@ -1338,25 +1336,6 @@ implementation
         WriteWasmCustomSection(wcstRelocCode);  { section #8 }
         WriteWasmCustomSection(wcstRelocData);  { section #9 }
 
-        Writeln('ObjSymbolList:');
-        for i:=0 to Data.ObjSymbolList.Count-1 do
-          begin
-            objsym:=TWasmObjSymbol(Data.ObjSymbolList[i]);
-            Write(objsym.Name, ' bind=', objsym.Bind, ' typ=', objsym.typ, ' address=', objsym.address, ' objsection=');
-            if assigned(objsym.objsection) then
-              Write(objsym.objsection.Name)
-            else
-              Write('nil');
-            Writeln;
-          end;
-
-        Writeln('ObjSectionList:');
-        for i:=0 to Data.ObjSectionList.Count-1 do
-          begin
-            objsec:=TWasmObjSection(Data.ObjSectionList[i]);
-            Writeln(objsec.Name, ' IsCode=', objsec.IsCode, ' IsData=', objsec.IsData, ' Size=', objsec.Size, ' MemPos=', objsec.MemPos, ' DataPos=', objsec.DataPos, ' SegIdx=', objsec.SegIdx);
-          end;
-
         result:=true;
       end;