diff options
Diffstat (limited to 'src/asm_v_wasm.h')
-rw-r--r-- | src/asm_v_wasm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/asm_v_wasm.h b/src/asm_v_wasm.h index 7a4a0be31..53881861c 100644 --- a/src/asm_v_wasm.h +++ b/src/asm_v_wasm.h @@ -54,6 +54,16 @@ std::string getSig(WasmType result, const ListType& operands) { return ret; } +template<typename ListType> +std::string getSigFromStructs(WasmType result, const ListType& operands) { + std::string ret; + ret += getSig(result); + for (auto operand : operands) { + ret += getSig(operand.type); + } + return ret; +} + WasmType sigToWasmType(char sig); FunctionType* sigToFunctionType(std::string sig); |