@@ -12,7 +12,6 @@ use crate::llvm;
1212use crate :: llvm:: debuginfo:: {
1313 DIArray , DIBuilder , DIFile , DIFlags , DILexicalBlock , DISPFlags , DIScope , DIType , DIVariable ,
1414} ;
15- use rustc:: middle:: codegen_fn_attrs:: CodegenFnAttrFlags ;
1615use rustc:: ty:: subst:: { GenericArgKind , SubstsRef } ;
1716use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , LOCAL_CRATE } ;
1817
@@ -22,7 +21,7 @@ use crate::common::CodegenCx;
2221use crate :: value:: Value ;
2322use rustc:: mir;
2423use rustc:: session:: config:: { self , DebugInfo } ;
25- use rustc:: ty:: { self , Instance , InstanceDef , ParamEnv , Ty } ;
24+ use rustc:: ty:: { self , Instance , ParamEnv , Ty } ;
2625use rustc_codegen_ssa:: debuginfo:: type_names;
2726use rustc_codegen_ssa:: mir:: debuginfo:: { DebugScope , FunctionDebugContext , VariableKind } ;
2827use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
@@ -241,12 +240,6 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
241240 return None ;
242241 }
243242
244- if let InstanceDef :: Item ( def_id) = instance. def {
245- if self . tcx ( ) . codegen_fn_attrs ( def_id) . flags . contains ( CodegenFnAttrFlags :: NO_DEBUG ) {
246- return None ;
247- }
248- }
249-
250243 let span = mir. span ;
251244
252245 // This can be the case for functions inlined from another crate
0 commit comments