@@ -32,7 +32,7 @@ pub(crate) struct CodegenedFunction {
3232pub ( crate ) fn codegen_fn < ' tcx > (
3333 tcx : TyCtxt < ' tcx > ,
3434 cx : & mut crate :: CodegenCx ,
35- type_dbg : & mut TypeDebugContext < ' tcx > ,
35+ // type_dbg: &mut TypeDebugContext<'tcx>,
3636 cached_func : Function ,
3737 module : & mut dyn Module ,
3838 instance : Instance < ' tcx > ,
@@ -63,9 +63,9 @@ pub(crate) fn codegen_fn<'tcx>(
6363 func. clear ( ) ;
6464 func. name = UserFuncName :: user ( 0 , func_id. as_u32 ( ) ) ;
6565 func. signature = sig;
66- if cx. debug_context . is_some ( ) {
67- func. collect_debug_info ( ) ;
68- }
66+ // if cx.debug_context.is_some() {
67+ // func.collect_debug_info();
68+ // }
6969
7070 let mut bcx = FunctionBuilder :: new ( & mut func, & mut func_ctx) ;
7171
@@ -81,11 +81,11 @@ pub(crate) fn codegen_fn<'tcx>(
8181 let pointer_type = target_config. pointer_type ( ) ;
8282 let clif_comments = crate :: pretty_clif:: CommentWriter :: new ( tcx, instance, fn_abi) ;
8383
84- let func_debug_cx = if let Some ( debug_context) = & mut cx. debug_context {
85- Some ( debug_context. define_function ( tcx, type_dbg, instance, fn_abi, & symbol_name, mir. span ) )
84+ let func_debug_cx = None ; /* if let Some(debug_context) = &mut cx.debug_context {
85+ Some(debug_context.define_function(tcx, type_dbg, instance, fn_abi, &symbol_name, mir.span))
8686 } else {
87- None
88- } ;
87+ None
88+ };*/
8989
9090 let exception_slot = bcx. declare_var ( pointer_type) ;
9191
@@ -243,6 +243,7 @@ pub(crate) fn compile_fn(
243243 }
244244 }
245245
246+ /*
246247 // Define debuginfo for function
247248 let debug_context = &mut cx.debug_context;
248249 profiler.generic_activity("generate debug info").run(|| {
@@ -254,6 +255,7 @@ pub(crate) fn compile_fn(
254255 );
255256 }
256257 });
258+ */
257259}
258260
259261fn verify_func ( tcx : TyCtxt < ' _ > , writer : & crate :: pretty_clif:: CommentWriter , func : & Function ) {
0 commit comments