Browse Source

- Removed tai_label.is_global field, was used in just one place and is generally not needed: binding is controlled by 'bind' property of referenced AsmLabel.

git-svn-id: trunk@25336 -
sergei 12 năm trước cách đây
mục cha
commit
108d3cb090
2 tập tin đã thay đổi với 3 bổ sung5 xóa
  1. 2 4
      compiler/aasmtai.pas
  2. 1 1
      compiler/powerpc/agppcmpw.pas

+ 2 - 4
compiler/aasmtai.pas

@@ -486,7 +486,6 @@ interface
        { Generates an assembler label }
        tai_label = class(tai)
           labsym    : tasmlabel;
-          is_global : boolean;
 {$ifdef arm}
           { set to true when the label has been moved by insertpcrelativedata to the correct location
             so one label can be used multiple times }
@@ -2080,7 +2079,6 @@ implementation
         typ:=ait_label;
         labsym:=_labsym;
         labsym.is_set:=true;
-        is_global:=(labsym.bind in [AB_GLOBAL,AB_PRIVATE_EXTERN]);
       end;
 
 
@@ -2088,7 +2086,7 @@ implementation
       begin
         inherited ppuload(t,ppufile);
         labsym:=tasmlabel(ppufile.getasmsymbol);
-        is_global:=boolean(ppufile.getbyte);
+        ppufile.getbyte; { was is_global flag, now unused }
       end;
 
 
@@ -2096,7 +2094,7 @@ implementation
       begin
         inherited ppuwrite(ppufile);
         ppufile.putasmsymbol(labsym);
-        ppufile.putbyte(byte(is_global));
+        ppufile.putbyte(0); { was is_global flag, now unused }
       end;
 
 

+ 1 - 1
compiler/powerpc/agppcmpw.pas

@@ -1036,7 +1036,7 @@ interface
                         //Procedure entry points:
                         if not macos_direct_globals then
                           begin
-                            WriteDataHeader(s, tai_label(hp).is_global, true);
+                            WriteDataHeader(s, tai_label(hp).labsym.bind in [AB_GLOBAL,AB_PRIVATE_EXTERN], true);
                           end
                         else
                           begin