Browse Source

* 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 3 years ago
parent
commit
d8665f8a51
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/wasm32/agllvmmc.pas

+ 2 - 2
compiler/wasm32/agllvmmc.pas

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