@@ -15,8 +15,8 @@ use crate::common::{AsCCharPtr, CodegenCx};
15
15
use crate :: debuginfo:: metadata:: enums:: DiscrResult ;
16
16
use crate :: debuginfo:: metadata:: type_map:: { self , Stub , UniqueTypeId } ;
17
17
use crate :: debuginfo:: metadata:: {
18
- DINodeCreationResult , NO_GENERICS , NO_SCOPE_METADATA , SmallVec , UNKNOWN_LINE_NUMBER ,
19
- build_field_di_node , file_metadata , file_metadata_from_def_id , size_and_align_of, type_di_node,
18
+ DINodeCreationResult , DW_TAG_const_type , NO_GENERICS , NO_SCOPE_METADATA , SmallVec ,
19
+ UNKNOWN_LINE_NUMBER , build_field_di_node , file_metadata , size_and_align_of, type_di_node,
20
20
unknown_file_metadata, visibility_di_flags,
21
21
} ;
22
22
use crate :: debuginfo:: utils:: DIB ;
@@ -580,11 +580,10 @@ fn build_variant_struct_wrapper_type_di_node<'ll, 'tcx>(
580
580
let ty_u64 = Ty :: new_uint ( cx. tcx , ty:: UintTy :: U64 ) ;
581
581
( type_di_node ( cx, ty_u64) , Align :: EIGHT . bits ( ) as u32 )
582
582
} ;
583
- const DW_TAG_CONST_TYPE : c_uint = 0x0026 ;
584
583
585
584
// must wrap type in a `const` modifier for LLDB to be able to inspect the value of the member
586
585
let field_type =
587
- llvm:: LLVMRustDIBuilderCreateQualifiedType ( DIB ( cx) , DW_TAG_CONST_TYPE , t_di) ;
586
+ llvm:: LLVMRustDIBuilderCreateQualifiedType ( DIB ( cx) , DW_TAG_const_type , t_di) ;
588
587
589
588
llvm:: LLVMRustDIBuilderCreateStaticMemberType (
590
589
DIB ( cx) ,
0 commit comments