Преглед изворни кода

* ttai_typedconstbuilder.finalize_asmlist(): fixed handling of non-local
symbols that aren't AB_GLOBAL (e.g. AB_PRIVATE_EXTERN)

git-svn-id: trunk@32878 -

Jonas Maebe пре 9 година
родитељ
комит
1046c995a8
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      compiler/aasmcnst.pas

+ 3 - 3
compiler/aasmcnst.pas

@@ -935,10 +935,10 @@ implementation
          end;
 
        if not(tcalo_is_lab in options) then
-         if sym.bind=AB_GLOBAL then
-           prelist.concat(tai_symbol.Create_Global(sym,0))
-         else
+         if sym.bind=AB_LOCAL then
            prelist.concat(tai_symbol.Create(sym,0))
+         else
+           prelist.concat(tai_symbol.Create_Global(sym,0))
        else
          prelist.concat(tai_label.Create(tasmlabel(sym)));
        { insert the symbol information before the data }