@@ -2,8 +2,8 @@ use miden_diagnostics::DiagnosticsHandler;
22use rustc_hash:: FxHashMap ;
33
44use miden_hir:: {
5- cranelift_entity:: PrimaryMap , ComponentBuilder , ComponentExport , FunctionExportName ,
6- FunctionIdent , Ident , InterfaceFunctionIdent , InterfaceIdent , Symbol ,
5+ cranelift_entity:: PrimaryMap , ComponentBuilder , ComponentExport , FunctionIdent , Ident ,
6+ InterfaceFunctionIdent , InterfaceIdent , Symbol ,
77} ;
88use miden_hir_type:: LiftedFunctionType ;
99
@@ -272,7 +272,6 @@ impl<'a, 'data> ComponentTranslator<'a, 'data> {
272272 let component_import = miden_hir:: ComponentImport {
273273 function_ty : lifted_func_ty,
274274 interface_function,
275- invoke_method : import_metadata. invoke_method ,
276275 digest : import_metadata. digest . clone ( ) ,
277276 } ;
278277 Ok ( component_import)
@@ -288,7 +287,7 @@ impl<'a, 'data> ComponentTranslator<'a, 'data> {
288287 match export {
289288 Export :: LiftedFunction { ty, func, options } => {
290289 let export_name = Symbol :: intern ( name) . into ( ) ;
291- let export = self . build_export_lifted_function ( & export_name , func, ty, options) ?;
290+ let export = self . build_export_lifted_function ( func, ty, options) ?;
292291 component_builder. add_export ( export_name, export) ;
293292 Ok ( ( ) )
294293 }
@@ -316,7 +315,6 @@ impl<'a, 'data> ComponentTranslator<'a, 'data> {
316315 /// Build an IR Component export from the given lifted Wasm core module function export
317316 fn build_export_lifted_function (
318317 & self ,
319- function_export_name : & FunctionExportName ,
320318 func : & CoreDef ,
321319 ty : & TypeFuncIndex ,
322320 options : & CanonicalOptions ,
@@ -361,16 +359,9 @@ impl<'a, 'data> ComponentTranslator<'a, 'data> {
361359 }
362360 } ;
363361 let lifted_func_ty = convert_lifted_func_ty ( ty, & self . component_types ) ;
364- let Some ( export_metadata) = self . config . export_metadata . get ( function_export_name) else {
365- return Err ( WasmError :: MissingExportMetadata ( format ! (
366- "Export metadata for interface function {:?} not found" ,
367- function_export_name,
368- ) ) ) ;
369- } ;
370362 let export = miden_hir:: ComponentExport {
371363 function : func_ident,
372364 function_ty : lifted_func_ty,
373- invoke_method : export_metadata. invoke_method ,
374365 } ;
375366 Ok ( export)
376367 }
0 commit comments