Browse Source

* fixed load/store LLVM-MC asm output for global variables

git-svn-id: branches/wasm@47165 -
nickysn 4 years ago
parent
commit
8494283925
1 changed files with 1 additions and 6 deletions
  1. 1 6
      compiler/wasm32/agllvmmc.pas

+ 1 - 6
compiler/wasm32/agllvmmc.pas

@@ -297,12 +297,7 @@ implementation
           for i:=0 to cpu.ops-1 do
             begin
               writer.AsmWrite(#9);
-
-              if (cpu.opcode in AsmOp_LoadStore) and (cpu.oper[i]^.typ = top_ref) then
-                writer.AsmWrite('offset='+tostr( cpu.oper[i]^.ref^.offset))
-              else
-                writer.AsmWrite(getopstr(cpu.oper[i]^));
-
+              writer.AsmWrite(getopstr(cpu.oper[i]^));
             end;
         end;