From eb046b07d07fec12b144ebe3fa00b586c6c169b6 Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Sun, 31 Dec 2023 15:49:26 +0200 Subject: [PATCH] * TWasmFuncTypeTable.AddFuncType renamed .AddOrGetFuncType --- compiler/ogwasm.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/ogwasm.pas b/compiler/ogwasm.pas index 44afa95075..461d2a8597 100644 --- a/compiler/ogwasm.pas +++ b/compiler/ogwasm.pas @@ -103,7 +103,7 @@ interface public destructor Destroy; override; - function AddFuncType(wft: TWasmFuncType): integer; + function AddOrGetFuncType(wft: TWasmFuncType): integer; property Count: Integer read GetCount; property Items[Index: Integer]: TWasmFuncType read GetItem; default; end; @@ -492,7 +492,7 @@ implementation end; end; - function TWasmFuncTypeTable.AddFuncType(wft: TWasmFuncType): integer; + function TWasmFuncTypeTable.AddOrGetFuncType(wft: TWasmFuncType): integer; var i: Integer; begin @@ -785,7 +785,7 @@ implementation function TWasmObjData.AddFuncType(wft: TWasmFuncType): integer; begin - Result:=FFuncTypes.AddFuncType(wft); + Result:=FFuncTypes.AddOrGetFuncType(wft); end; function TWasmObjData.globalref(asmsym: TAsmSymbol): TObjSymbol;