+ support global references with offset in the LLVM-MC asm writer

git-svn-id: branches/wasm@47166 -
This commit is contained in:
nickysn 2020-10-24 12:03:55 +00:00
parent 8494283925
commit 19519eb3d2

View File

@ -186,6 +186,10 @@ implementation
// This register is not part of this instruction, it will have
// been placed on the stack by the previous one.
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
else
begin