* override the IN node for WebAssembly and avoid generating jump tables for the

IN nodes on that target

git-svn-id: branches/wasm@48176 -
This commit is contained in:
nickysn 2021-01-18 21:37:39 +00:00
parent 374882455b
commit ec7fbcb271

View File

@ -30,6 +30,13 @@ interface
type
{ twasminnode }
twasminnode = class(tcginnode)
protected
function checkgenjumps(out setparts: Tsetparts; out numparts: byte; out use_small: boolean): boolean;override;
end;
{ twasmcasenode }
twasmcasenode = class(tcgcasenode)
@ -58,6 +65,15 @@ implementation
symtype,
pass_2,defutil,verbose,constexp;
{*****************************************************************************
TWASMINNODE
*****************************************************************************}
function twasminnode.checkgenjumps(out setparts: Tsetparts; out numparts: byte; out use_small: boolean): boolean;
begin
result:=false;
end;
{*****************************************************************************
TWASMCASENODE
*****************************************************************************}
@ -481,5 +497,6 @@ implementation
end;
begin
cinnode:=twasminnode;
ccasenode:=twasmcasenode;
end.