Browse Source

+ override and implement WriteAsmList

git-svn-id: branches/wasm@46497 -
nickysn 5 years ago
parent
commit
77dea11cdd
1 changed files with 17 additions and 0 deletions
  1. 17 0
      compiler/wasm32/agllvmmc.pas

+ 17 - 0
compiler/wasm32/agllvmmc.pas

@@ -29,6 +29,7 @@ interface
 
 
   uses
   uses
     systems,
     systems,
+    aasmdata,
     assemble;
     assemble;
 
 
   type
   type
@@ -36,10 +37,26 @@ interface
     { TLLVMMachineCodePlaygroundAssembler }
     { TLLVMMachineCodePlaygroundAssembler }
 
 
     TLLVMMachineCodePlaygroundAssembler=class(texternalassembler)
     TLLVMMachineCodePlaygroundAssembler=class(texternalassembler)
+    public
+      procedure WriteAsmList;override;
     end;
     end;
 
 
 implementation
 implementation
 
 
+  { TLLVMMachineCodePlaygroundAssembler }
+
+  procedure TLLVMMachineCodePlaygroundAssembler.WriteAsmList;
+    var
+      hal: TAsmListType;
+    begin
+      for hal:=low(TasmlistType) to high(TasmlistType) do
+        begin
+          writer.AsmWriteLn(asminfo^.comment+'Begin asmlist '+AsmListTypeStr[hal]);
+          writetree(current_asmdata.asmlists[hal]);
+          writer.AsmWriteLn(asminfo^.comment+'End asmlist '+AsmListTypeStr[hal]);
+        end;
+    end;
+
   const
   const
     as_wasm32_llvm_mc_info : tasminfo =
     as_wasm32_llvm_mc_info : tasminfo =
        (
        (