Browse Source

+ added size info to the 'Var X located at' comment generated in the asm output

git-svn-id: trunk@27454 -
nickysn 11 years ago
parent
commit
cf1d60b8eb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/ncgutil.pas

+ 2 - 1
compiler/ncgutil.pas

@@ -1515,7 +1515,8 @@ implementation
                   begin
                   begin
                     if not assigned(vs.initialloc.reference.symbol) then
                     if not assigned(vs.initialloc.reference.symbol) then
                       list.concat(Tai_comment.Create(strpnew('Var '+vs.realname+' located at '+
                       list.concat(Tai_comment.Create(strpnew('Var '+vs.realname+' located at '+
-                         std_regname(vs.initialloc.reference.base)+tostr_with_plus(vs.initialloc.reference.offset))));
+                         std_regname(vs.initialloc.reference.base)+tostr_with_plus(vs.initialloc.reference.offset)+
+                         ', size='+tcgsize2str(vs.initialloc.size))));
                   end;
                   end;
               end;
               end;
             end;
             end;