浏览代码

* handle ait_varloc in the nasm writer. This allows compiling the system unit
for i8086 with regvars and -sr for debugging purposes.

git-svn-id: trunk@26271 -

nickysn 11 年之前
父节点
当前提交
39c54bf077
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      compiler/x86/agx86nsm.pas

+ 9 - 0
compiler/x86/agx86nsm.pas

@@ -1080,6 +1080,15 @@ interface
              end;
            ait_seh_directive :
              { Ignore for now };
+           ait_varloc:
+             begin
+               if tai_varloc(hp).newlocationhi<>NR_NO then
+                 AsmWriteLn(target_asm.comment+'Var '+tai_varloc(hp).varsym.realname+' located in register '+
+                   std_regname(tai_varloc(hp).newlocationhi)+':'+std_regname(tai_varloc(hp).newlocation))
+               else
+                 AsmWriteLn(target_asm.comment+'Var '+tai_varloc(hp).varsym.realname+' located in register '+
+                   std_regname(tai_varloc(hp).newlocation));
+             end;
            else
              internalerror(10000);
          end;