mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* converted emitting resourcestring references to the high level typed
constant builder git-svn-id: trunk@32209 -
This commit is contained in:
parent
0c904e92ff
commit
0dee7cb4a0
@ -1639,6 +1639,9 @@ implementation
|
||||
|
||||
|
||||
procedure ttai_typedconstbuilder.queue_emit_const(cs: tconstsym);
|
||||
var
|
||||
resourcestrrec: trecorddef;
|
||||
ansiptr: tdef;
|
||||
begin
|
||||
if cs.consttyp<>constresourcestring then
|
||||
internalerror(2014062102);
|
||||
@ -1647,7 +1650,14 @@ implementation
|
||||
{ warning: update if/when the type of resource strings changes }
|
||||
case cs.consttyp of
|
||||
constresourcestring:
|
||||
emit_tai(Tai_const.Createname(make_mangledname('RESSTR',cs.owner,cs.name),AT_DATA,sizeof(pint)),cpointerdef.getreusable(cansistringtype));
|
||||
begin
|
||||
resourcestrrec:=trecorddef(search_system_type('TRESOURCESTRINGRECORD').typedef);
|
||||
ansiptr:=cpointerdef.getreusable(cansistringtype);
|
||||
queue_subscriptn_multiple_by_name(resourcestrrec,['CURRENTVALUE']);
|
||||
queue_emit_asmsym(current_asmdata.RefAsmSymbol(
|
||||
make_mangledname('RESSTR',cs.owner,cs.name),AT_DATA),cansistringtype
|
||||
);
|
||||
end;
|
||||
{ can these occur? }
|
||||
constord,
|
||||
conststring,constreal,
|
||||
|
Loading…
Reference in New Issue
Block a user