Browse Source

* aitws_try_delegate renamed aitws_legacy_try_delegate

Nikolay Nikolov 1 day ago
parent
commit
30adda9221
2 changed files with 4 additions and 4 deletions
  1. 2 2
      compiler/wasm32/aasmcpu.pas
  2. 2 2
      compiler/wasm32/cpupi.pas

+ 2 - 2
compiler/wasm32/aasmcpu.pas

@@ -191,7 +191,7 @@ uses
         aitws_if,
         aitws_block,
         aitws_loop,
-        aitws_try_delegate,
+        aitws_legacy_try_delegate,
         aitws_try_catch
       );
 
@@ -1769,7 +1769,7 @@ uses
 
     constructor tai_wasmstruc_try_delegate.internal_create(first_ins: taicpu; a_try_asmlist, srclist: TAsmList);
       begin
-        wstyp:=aitws_try_delegate;
+        wstyp:=aitws_legacy_try_delegate;
         inherited internal_create(a_try_asmlist);
         if assigned(first_ins.Previous) or assigned(first_ins.Next) then
           internalerror(2023100309);

+ 2 - 2
compiler/wasm32/cpupi.pas

@@ -949,7 +949,7 @@ implementation
             begin
               if hp.typ=ait_wasm_structured_instruction then
                 begin
-                  if not (taicpu_wasm_structured_instruction(hp).wstyp in [aitws_try_catch,aitws_try_delegate]) then
+                  if not (taicpu_wasm_structured_instruction(hp).wstyp in [aitws_try_catch,aitws_legacy_try_delegate]) then
                     internalerror(2023102201);
                   resolve_labels_of_asmlist_with_try_blocks_recursive(tai_wasmstruc_try(hp).try_asmlist);
                   if taicpu_wasm_structured_instruction(hp).wstyp=aitws_try_catch then
@@ -959,7 +959,7 @@ implementation
                           resolve_labels_of_asmlist_with_try_blocks_recursive(catch_list[i].asmlist);
                         resolve_labels_of_asmlist_with_try_blocks_recursive(catch_all_asmlist);
                       end
-                  else if taicpu_wasm_structured_instruction(hp).wstyp=aitws_try_delegate then
+                  else if taicpu_wasm_structured_instruction(hp).wstyp=aitws_legacy_try_delegate then
                     {nothing}
                   else
                     internalerror(2023102202);