瀏覽代碼

* 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;
     begin
-      inherited;
-      { print all global procedures/functions }
       writer.AsmWriteLn(#9'.globaltype'#9+STACK_POINTER_SYM+', i32');
+      { print all global procedures/functions }
       WriteImports;
+      inherited;
     end;