瀏覽代碼

+ support align directive with a given use_op/fillop in the NASM asm writer

git-svn-id: trunk@30459 -
nickysn 10 年之前
父節點
當前提交
877a769ac3
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/x86/agx86nsm.pas

+ 2 - 0
compiler/x86/agx86nsm.pas

@@ -639,6 +639,8 @@ interface
                       (target_info.system in (systems_windows+systems_wince))
                      ) then
                       AsmWriteLn(#9'ALIGNB '+tostr(tai_align(hp).aligntype))
+                    else if tai_align_abstract(hp).use_op then
+                      AsmWriteLn(#9'ALIGN '+tostr(tai_align(hp).aligntype)+',DB '+tostr(tai_align_abstract(hp).fillop))
                     else
                       AsmWriteLn(#9'ALIGN '+tostr(tai_align(hp).aligntype));
                  end;