diff options
Diffstat (limited to 'src/asm_v_wasm.h')
-rw-r--r-- | src/asm_v_wasm.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/asm_v_wasm.h b/src/asm_v_wasm.h index 52524ecbc..7a4a0be31 100644 --- a/src/asm_v_wasm.h +++ b/src/asm_v_wasm.h @@ -29,12 +29,13 @@ AsmType wasmToAsmType(WasmType type); char getSig(WasmType type); -std::string getSig(FunctionType *type); +std::string getSig(const FunctionType *type); std::string getSig(Function *func); -template<typename CallBase> -std::string getSig(CallBase *call) { +template<typename T, + typename std::enable_if<std::is_base_of<Expression, T>::value>::type* = nullptr> +std::string getSig(T *call) { std::string ret; ret += getSig(call->type); for (auto operand : call->operands) { |