mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 00:50:17 +02:00
+ override and implement WriteAsmList
git-svn-id: branches/wasm@46497 -
This commit is contained in:
parent
6a89e2c1fa
commit
77dea11cdd
@ -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 =
|
||||||
(
|
(
|
||||||
|
Loading…
Reference in New Issue
Block a user