Prechádzať zdrojové kódy

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

git-svn-id: branches/wasm@47165 -
nickysn 5 rokov pred
rodič
commit
8494283925
1 zmenil súbory, kde vykonal 1 pridanie a 6 odobranie
  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
           for i:=0 to cpu.ops-1 do
             begin
             begin
               writer.AsmWrite(#9);
               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;
         end;
         end;