mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 14:19:31 +02:00
+ support for a reference without base or symbol, if the offset is 0
(for @ptrtype(0)^.field expressions) git-svn-id: trunk@32777 -
This commit is contained in:
parent
b4fe4789d6
commit
c452e70f74
@ -199,7 +199,7 @@ implementation
|
||||
begin
|
||||
result:='';
|
||||
if assigned(ref.relsymbol) or
|
||||
(assigned(ref.symbol) =
|
||||
(assigned(ref.symbol) and
|
||||
(ref.base<>NR_NO)) or
|
||||
(ref.index<>NR_NO) or
|
||||
(ref.offset<>0) then
|
||||
@ -215,13 +215,15 @@ implementation
|
||||
result:=result+'index<>NR_NO, ';
|
||||
if ref.offset<>0 then
|
||||
result:=result+'offset='+tostr(ref.offset);
|
||||
result:=result+')**'
|
||||
// internalerror(2013060225);
|
||||
result:=result+')**';
|
||||
internalerror(2013060225);
|
||||
end;
|
||||
if ref.base<>NR_NO then
|
||||
result:=result+getregisterstring(ref.base)
|
||||
else if assigned(ref.symbol) then
|
||||
result:=result+LlvmAsmSymName(ref.symbol)
|
||||
else
|
||||
result:=result+LlvmAsmSymName(ref.symbol);
|
||||
result:=result+'null';
|
||||
if withalign then
|
||||
result:=result+getreferencealignstring(ref);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user