Browse Source

+ declare the stack pointer global type

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

+ 1 - 0
compiler/wasm32/agllvmmc.pas

@@ -133,6 +133,7 @@ implementation
       { print all global procedures/functions }
       { print all global procedures/functions }
       WriteSymtableProcdefs(current_module.globalsymtable);
       WriteSymtableProcdefs(current_module.globalsymtable);
       WriteSymtableProcdefs(current_module.localsymtable);
       WriteSymtableProcdefs(current_module.localsymtable);
+      writer.AsmWriteLn(#9'.globaltype'#9+STACK_POINTER_SYM+', i32');
     end;
     end;