mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 09:18:43 +02:00
* allow assembler labels to be used in typed consts
git-svn-id: trunk@3590 -
This commit is contained in:
parent
307315cef6
commit
627c7f2ae0
@ -63,6 +63,7 @@ interface
|
||||
constructor create(const n : string);
|
||||
constructor ppuload(ppufile:tcompilerppufile);
|
||||
procedure ppuwrite(ppufile:tcompilerppufile);override;
|
||||
function mangledname:string;
|
||||
end;
|
||||
|
||||
tunitsym = class(Tstoredsym)
|
||||
@ -474,6 +475,16 @@ implementation
|
||||
end;
|
||||
|
||||
|
||||
function tlabelsym.mangledname:string;
|
||||
begin
|
||||
if not(defined) then
|
||||
begin
|
||||
defined:=true;
|
||||
current_asmdata.getjumplabel(asmblocklabel);
|
||||
end;
|
||||
result:=asmblocklabel.getname;
|
||||
end;
|
||||
|
||||
{****************************************************************************
|
||||
TUNITSYM
|
||||
****************************************************************************}
|
||||
|
Loading…
Reference in New Issue
Block a user