Преглед на файлове

* write the .globaltype directive and the imports in the beginning of the
assembly file, because that appears to be required by llvm-mc from git

Nikolay Nikolov преди 4 години
родител
ревизия
d8665f8a51
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      compiler/wasm32/agllvmmc.pas

+ 2 - 2
compiler/wasm32/agllvmmc.pas

@@ -153,10 +153,10 @@ implementation
 
 
   procedure TLLVMMachineCodePlaygroundAssembler.WriteAsmList;
   procedure TLLVMMachineCodePlaygroundAssembler.WriteAsmList;
     begin
     begin
-      inherited;
-      { print all global procedures/functions }
       writer.AsmWriteLn(#9'.globaltype'#9+STACK_POINTER_SYM+', i32');
       writer.AsmWriteLn(#9'.globaltype'#9+STACK_POINTER_SYM+', i32');
+      { print all global procedures/functions }
       WriteImports;
       WriteImports;
+      inherited;
     end;
     end;