File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ fn codegen_inner(
78
78
let callee_func_id = module. declare_function ( & callee_name, Linkage :: Import , & sig) . unwrap ( ) ;
79
79
80
80
let mut ctx = Context :: new ( ) ;
81
- ctx. func = Function :: with_name_signature ( ExternalName :: user ( 0 , 0 ) , sig. clone ( ) ) ;
81
+ ctx. func . signature = sig. clone ( ) ;
82
82
{
83
83
let mut func_ctx = FunctionBuilderContext :: new ( ) ;
84
84
let mut bcx = FunctionBuilder :: new ( & mut ctx. func , & mut func_ctx) ;
@@ -116,7 +116,7 @@ fn codegen_inner(
116
116
let callee_func_id = module. declare_function ( callee_name, Linkage :: Import , & sig) . unwrap ( ) ;
117
117
118
118
let mut ctx = Context :: new ( ) ;
119
- ctx. func = Function :: with_name_signature ( ExternalName :: user ( 0 , 0 ) , sig) ;
119
+ ctx. func . signature = sig;
120
120
{
121
121
let mut func_ctx = FunctionBuilderContext :: new ( ) ;
122
122
let mut bcx = FunctionBuilder :: new ( & mut ctx. func , & mut func_ctx) ;
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ pub(crate) fn maybe_create_entry_wrapper(
74
74
let main_func_id = m. declare_function ( main_name, Linkage :: Import , & main_sig) . unwrap ( ) ;
75
75
76
76
let mut ctx = Context :: new ( ) ;
77
- ctx. func = Function :: with_name_signature ( ExternalName :: user ( 0 , 0 ) , cmain_sig) ;
77
+ ctx. func . signature = cmain_sig;
78
78
{
79
79
let mut func_ctx = FunctionBuilderContext :: new ( ) ;
80
80
let mut bcx = FunctionBuilder :: new ( & mut ctx. func , & mut func_ctx) ;
You can’t perform that action at this time.
0 commit comments