mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:09:31 +02:00
+ handle exports in the llvm-mc wasm32 assembler writer
git-svn-id: branches/wasm@46994 -
This commit is contained in:
parent
697bd6d586
commit
ceeb614473
@ -836,6 +836,17 @@ implementation
|
|||||||
end;
|
end;
|
||||||
writer.AsmWriteLn(')');
|
writer.AsmWriteLn(')');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure WriteImportExport(hp:tai_impexp);
|
||||||
|
var
|
||||||
|
symstypestr: string;
|
||||||
|
begin
|
||||||
|
Str(hp.symstype,symstypestr);
|
||||||
|
writer.AsmWriteLn(asminfo^.comment+'ait_importexport(extname='''+hp.extname+''', intname='''+hp.intname+''', extmodule='''+hp.extmodule+''', symstype='+symstypestr+')');
|
||||||
|
if hp.extmodule='' then
|
||||||
|
writer.AsmWriteLn(#9'.export_name '+hp.intname+', '+hp.extname);
|
||||||
|
end;
|
||||||
{$endif WASM}
|
{$endif WASM}
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -1603,9 +1614,7 @@ implementation
|
|||||||
ait_functype:
|
ait_functype:
|
||||||
WriteFuncType(tai_functype(hp));
|
WriteFuncType(tai_functype(hp));
|
||||||
ait_importexport:
|
ait_importexport:
|
||||||
begin
|
WriteImportExport(tai_impexp(hp));
|
||||||
writer.AsmWriteLn(asminfo^.comment+'TODO: ait_importexport');
|
|
||||||
end;
|
|
||||||
{$endif WASM}
|
{$endif WASM}
|
||||||
|
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user