Selaa lähdekoodia

* Typo fixed.

Yuriy Sydorov 3 vuotta sitten
vanhempi
commit
7e4753bebd
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      compiler/rgobj.pas

+ 4 - 4
compiler/rgobj.pas

@@ -1710,7 +1710,7 @@ unit rgobj;
             supregset_include(colourednodes,n);
             supregset_include(colourednodes,n);
         end;
         end;
 
 
-    function colour_regitser(n : Tsuperregister) : boolean;
+    function colour_register(n : Tsuperregister) : boolean;
       var
       var
         j,k : cardinal;
         j,k : cardinal;
         adj : Psuperregisterworklist;
         adj : Psuperregisterworklist;
@@ -1767,7 +1767,7 @@ unit rgobj;
       for i:=selectstack.length downto 1 do
       for i:=selectstack.length downto 1 do
         begin
         begin
           n:=selectstack.buf^[i-1];
           n:=selectstack.buf^[i-1];
-          if not colour_regitser(n) and
+          if not colour_register(n) and
             (ri_spill_helper in reginfo[n].flags) then
             (ri_spill_helper in reginfo[n].flags) then
             begin
             begin
               { Register n is a helper register which holds the value
               { Register n is a helper register which holds the value
@@ -1788,7 +1788,7 @@ unit rgobj;
             begin
             begin
               n:=selectstack.buf^[i-1];
               n:=selectstack.buf^[i-1];
               if ri_spill_helper in reginfo[n].flags then
               if ri_spill_helper in reginfo[n].flags then
-                if not colour_regitser(n) then
+                if not colour_register(n) then
                   { Can't colour the spill helper register n.
                   { Can't colour the spill helper register n.
                     This can happen only when the code generator produces invalid code. }
                     This can happen only when the code generator produces invalid code. }
                   internalerror(2021091001);
                   internalerror(2021091001);
@@ -1798,7 +1798,7 @@ unit rgobj;
             begin
             begin
               n:=selectstack.buf^[i-1];
               n:=selectstack.buf^[i-1];
               if not (ri_spill_helper in reginfo[n].flags) then
               if not (ri_spill_helper in reginfo[n].flags) then
-                colour_regitser(n);
+                colour_register(n);
             end;
             end;
         end;
         end;