From fb0f7da9c1ba977aa68f5e01346306ae13b8f59a Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Tue, 12 Apr 2016 12:42:09 -0700 Subject: share WasmFuncDeclaration with Func and Import There was some duplicated code between WasmFunc and WasmImport; both allow you to specify a function signature or a function type. This change introduces a WasmFuncDeclaration which is shared by both. This also allows us to remove WasmTypeBindings. --- src/wasm-parser-lexer-shared.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/wasm-parser-lexer-shared.h') diff --git a/src/wasm-parser-lexer-shared.h b/src/wasm-parser-lexer-shared.h index 83c05a72..12b0f885 100644 --- a/src/wasm-parser-lexer-shared.h +++ b/src/wasm-parser-lexer-shared.h @@ -50,7 +50,6 @@ typedef union WasmToken { WasmVarVector vars; WasmExprPtr expr; WasmExprPtrVector exprs; - WasmTypeBindings type_bindings; WasmFuncField* func_fields; WasmFunc* func; WasmSegment segment; -- cgit v1.2.3