瀏覽代碼

* made the constructor of TObjSymbol virtual, so it can be overriden

Nikolay Nikolov 3 年之前
父節點
當前提交
07461d0fc3
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      compiler/ogbase.pas
  2. 1 1
      compiler/ogwasm.pas

+ 1 - 1
compiler/ogbase.pas

@@ -268,7 +268,7 @@ interface
        ThumbFunc : boolean;
 {$endif ARM}
 
-       constructor create(AList:TFPHashObjectList;const AName:string);
+       constructor create(AList:TFPHashObjectList;const AName:string);virtual;
        function  address:qword;
        procedure SetAddress(apass:byte;aobjsec:TObjSection;abind:TAsmsymbind;atyp:Tasmsymtype);
        function  ObjData: TObjData;

+ 1 - 1
compiler/ogwasm.pas

@@ -49,7 +49,7 @@ interface
         SymbolIndex: Integer;
         AliasOf: string;
         ExtraData: TWasmObjSymbolExtraData;
-        constructor create(AList:TFPHashObjectList;const AName:string);
+        constructor create(AList:TFPHashObjectList;const AName:string);override;
         function ImportOrFuncIndex: Integer;
         function IsAlias: Boolean;
       end;