mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 16:49:20 +02:00
+ support global references with offset in the LLVM-MC asm writer
git-svn-id: branches/wasm@47166 -
This commit is contained in:
parent
8494283925
commit
19519eb3d2
@ -186,6 +186,10 @@ implementation
|
|||||||
// This register is not part of this instruction, it will have
|
// This register is not part of this instruction, it will have
|
||||||
// been placed on the stack by the previous one.
|
// been placed on the stack by the previous one.
|
||||||
result:=ref.symbol.name;
|
result:=ref.symbol.name;
|
||||||
|
if ref.offset>0 then
|
||||||
|
result:=result+'+'+tostr(ref.offset)
|
||||||
|
else if ref.offset<0 then
|
||||||
|
result:=result+tostr(ref.offset);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user