瀏覽代碼

* removed unneeded label.
* asm output beautification.

git-svn-id: trunk@5467 -

yury 18 年之前
父節點
當前提交
e94277d5dc
共有 2 個文件被更改,包括 1 次插入4 次删除
  1. 1 1
      compiler/arm/agarmgas.pas
  2. 0 3
      compiler/arm/narmset.pas

+ 1 - 1
compiler/arm/agarmgas.pas

@@ -111,7 +111,7 @@ unit agarmgas;
                      s:=s+gas_regname(index);
 
                      if shiftmode<>SM_None then
-                       s:=s+' ,'+gas_shiftmode2str[shiftmode]+' #'+tostr(shiftimm);
+                       s:=s+', '+gas_shiftmode2str[shiftmode]+' #'+tostr(shiftimm);
                   end
                 else if offset<>0 then
                   s:=s+', #'+tostr(offset);

+ 0 - 3
compiler/arm/narmset.pas

@@ -70,7 +70,6 @@ implementation
 
     procedure tarmcasenode.genjumptable(hp : pcaselabel;min_,max_ : aint);
       var
-        table : tasmlabel;
         last : TConstExprInt;
         indexreg : tregister;
         href : treference;
@@ -99,7 +98,6 @@ implementation
              { case expr greater than max_ => goto elselabel }
              cg.a_cmp_const_reg_label(current_asmdata.CurrAsmList,opsize,jmp_gt,aint(max_),hregister,elselabel);
           end;
-        current_asmdata.getjumplabel(table);
         { make it a 32bit register }
         indexreg:=cg.makeregsize(current_asmdata.CurrAsmList,hregister,OS_INT);
         cg.a_load_reg_reg(current_asmdata.CurrAsmList,opsize,OS_INT,hregister,indexreg);
@@ -112,7 +110,6 @@ implementation
         href.shiftimm:=2;
         cg.a_load_ref_reg(current_asmdata.CurrAsmList,OS_ADDR,OS_ADDR,href,NR_PC);
         { generate jump table }
-        current_asmdata.CurrAsmList.concat(Tai_label.Create(table));
         last:=min_;
         genitem(current_asmdata.CurrAsmList,hp);
       end;