|
@@ -575,7 +575,9 @@ interface
|
|
|
constructor Create_rel_sym(_typ:taiconst_type;_sym,_endsym:tasmsymbol);
|
|
|
constructor Create_rva_sym(_sym:tasmsymbol);
|
|
|
constructor Createname(const name:string;ofs:aint);
|
|
|
+ constructor Createname(const name:string;_symtyp:Tasmsymtype;ofs:aint);
|
|
|
constructor Create_type_name(_typ:taiconst_type;const name:string;ofs:aint);
|
|
|
+ constructor Create_type_name(_typ:taiconst_type;const name:string;_symtyp:Tasmsymtype;ofs:aint);
|
|
|
constructor Create_nil_codeptr;
|
|
|
constructor Create_nil_dataptr;
|
|
|
constructor ppuload(t:taitype;ppufile:tcompilerppufile);override;
|
|
@@ -1696,13 +1698,25 @@ implementation
|
|
|
|
|
|
constructor tai_const.Createname(const name:string;ofs:aint);
|
|
|
begin
|
|
|
- self.create_sym_offset(current_asmdata.RefAsmSymbol(name),ofs);
|
|
|
+ self.Createname(name,AT_NONE,ofs);
|
|
|
+ end;
|
|
|
+
|
|
|
+
|
|
|
+ constructor tai_const.Createname(const name:string;_symtyp:Tasmsymtype;ofs:aint);
|
|
|
+ begin
|
|
|
+ self.create_sym_offset(current_asmdata.RefAsmSymbol(name,_symtyp),ofs);
|
|
|
end;
|
|
|
|
|
|
|
|
|
constructor tai_const.Create_type_name(_typ:taiconst_type;const name:string;ofs:aint);
|
|
|
begin
|
|
|
- self.create_sym_offset(current_asmdata.RefAsmSymbol(name),ofs);
|
|
|
+ self.Create_type_name(_typ,name,AT_NONE,ofs);
|
|
|
+ end;
|
|
|
+
|
|
|
+
|
|
|
+ constructor tai_const.Create_type_name(_typ:taiconst_type;const name:string;_symtyp:Tasmsymtype;ofs:aint);
|
|
|
+ begin
|
|
|
+ self.create_sym_offset(current_asmdata.RefAsmSymbol(name,_symtyp),ofs);
|
|
|
consttype:=_typ;
|
|
|
end;
|
|
|
|