瀏覽代碼

* give fields added for VMT definition of TP-style objects the same
name as the equivalent fields for class VMTs, so we can access them
using common code

git-svn-id: trunk@32763 -

Jonas Maebe 9 年之前
父節點
當前提交
59eff35c5d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      compiler/nobj.pas

+ 4 - 4
compiler/nobj.pas

@@ -856,10 +856,10 @@ implementation
              ;
           odt_object:
             begin
-              { size, -size, parent vmt [, dmt ] }
-              vmtdef.add_field_by_def('',ptrsinttype);
-              vmtdef.add_field_by_def('',ptrsinttype);
-              vmtdef.add_field_by_def('',voidpointertype);
+              { size, -size, parent vmt [, dmt ] (same names as for class) }
+              vmtdef.add_field_by_def('vInstanceSize',ptrsinttype);
+              vmtdef.add_field_by_def('vInstanceSize2',ptrsinttype);
+              vmtdef.add_field_by_def('vParent',voidpointertype);
 {$ifdef WITHDMT}
               vmtdef.add_field_by_def('',voidpointertype);
 {$endif WITHDMT}