Browse Source

- WebAssembly: removed tai_local.name, because we don't use it

Nikolay Nikolov 10 months ago
parent
commit
05b67c7408
2 changed files with 2 additions and 10 deletions
  1. 2 4
      compiler/wasm32/aasmcpu.pas
  2. 0 6
      compiler/wasm32/agwasa.pas

+ 2 - 4
compiler/wasm32/aasmcpu.pas

@@ -326,10 +326,9 @@ uses
 
       tai_local = class(tai)
         bastyp: TWasmBasicType;
-        name : string;
         first: boolean;
         last: boolean;
-        constructor create(abasictype: TWasmBasicType; const aname: string = '');
+        constructor create(abasictype: TWasmBasicType);
       end;
 
       { tai_globaltype }
@@ -1893,12 +1892,11 @@ uses
 
     { tai_local }
 
-    constructor tai_local.create(abasictype: TWasmBasicType; const aname: string);
+    constructor tai_local.create(abasictype: TWasmBasicType);
       begin
         inherited Create;
         bastyp := abasictype;
         typ := ait_local;
-        name := aname;
       end;
 
     { timpexp_ai }

+ 0 - 6
compiler/wasm32/agwasa.pas

@@ -622,12 +622,6 @@ implementation
              ait_local :
                begin
                  writer.AsmWrite(#9#9'(local ');
-                 if tai_local(hp).name <> '' then
-                   begin
-                     writer.AsmWrite(' ');
-                     writer.AsmWrite(tai_local(hp).name);
-                     writer.AsmWrite(' ');
-                   end;
                  writer.AsmWrite( WasmBasicTypeStr[ tai_local(hp).bastyp ] );
                  writer.AsmWrite(')');
                  writer.AsmLn;