Ver Fonte

* set the wasm tempgen direction in the parent constructor, together with the other targets

git-svn-id: branches/wasm@47801 -
nickysn há 4 anos atrás
pai
commit
4bac65be86
2 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 1
      compiler/tgobj.pas
  2. 0 1
      compiler/wasm32/tgcpu.pas

+ 1 - 1
compiler/tgobj.pas

@@ -184,7 +184,7 @@ implementation
        tempfreelist:=nil;
        templist:=nil;
        { we could create a new child class for this but I don't if it is worth the effort (FK) }
-{$if defined(powerpc) or defined(powerpc64) or defined(avr) or defined(jvm) or defined(aarch64) or defined(xtensa)}
+{$if defined(powerpc) or defined(powerpc64) or defined(avr) or defined(jvm) or defined(aarch64) or defined(xtensa) or defined(wasm32)}
        direction:=1;
 {$else}
        direction:=-1;

+ 0 - 1
compiler/wasm32/tgcpu.pas

@@ -153,7 +153,6 @@ unit tgcpu;
     constructor ttgwasm.create;
       begin
         inherited create;
-        direction := 1; // temp variables are allocated as "locals", and it starts with 0 and goes beyond!
         localvars:=TWasmLocalVars.Create;
       end;