mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 16:09:26 +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
|
||||
systems,
|
||||
aasmdata,
|
||||
assemble;
|
||||
|
||||
type
|
||||
@ -36,10 +37,26 @@ interface
|
||||
{ TLLVMMachineCodePlaygroundAssembler }
|
||||
|
||||
TLLVMMachineCodePlaygroundAssembler=class(texternalassembler)
|
||||
public
|
||||
procedure WriteAsmList;override;
|
||||
end;
|
||||
|
||||
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
|
||||
as_wasm32_llvm_mc_info : tasminfo =
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user