@@ -461,36 +461,36 @@ impl<'file> InProgressDwarfPackage<'file> {
461
461
// Iterate over sections rather than using `section_by_name` because sections can be
462
462
// repeated.
463
463
for section in input. sections ( ) {
464
- match section. name ( ) . map_err ( Error :: NonUtf8SectionName ) ? {
465
- ".debug_abbrev.dwo" | ".zdebug_abbrev.dwo" => {
464
+ match section. name ( ) {
465
+ Ok ( ".debug_abbrev.dwo" | ".zdebug_abbrev.dwo" ) => {
466
466
let data = section. compressed_data ( ) ?. decompress ( ) ?;
467
467
update ! ( debug_abbrev += self . obj. append_to_debug_abbrev( & data) ) ;
468
468
}
469
- ".debug_line.dwo" | ".zdebug_line.dwo" => {
469
+ Ok ( ".debug_line.dwo" | ".zdebug_line.dwo" ) => {
470
470
let data = section. compressed_data ( ) ?. decompress ( ) ?;
471
471
update ! ( debug_line += self . obj. append_to_debug_line( & data) ) ;
472
472
}
473
- ".debug_loc.dwo" | ".zdebug_loc.dwo" => {
473
+ Ok ( ".debug_loc.dwo" | ".zdebug_loc.dwo" ) => {
474
474
let data = section. compressed_data ( ) ?. decompress ( ) ?;
475
475
update ! ( debug_loc += self . obj. append_to_debug_loc( & data) ) ;
476
476
}
477
- ".debug_loclists.dwo" | ".zdebug_loclists.dwo" => {
477
+ Ok ( ".debug_loclists.dwo" | ".zdebug_loclists.dwo" ) => {
478
478
let data = section. compressed_data ( ) ?. decompress ( ) ?;
479
479
update ! ( debug_loclists += self . obj. append_to_debug_loclists( & data) ) ;
480
480
}
481
- ".debug_macinfo.dwo" | ".zdebug_macinfo.dwo" => {
481
+ Ok ( ".debug_macinfo.dwo" | ".zdebug_macinfo.dwo" ) => {
482
482
let data = section. compressed_data ( ) ?. decompress ( ) ?;
483
483
update ! ( debug_macinfo += self . obj. append_to_debug_macinfo( & data) ) ;
484
484
}
485
- ".debug_macro.dwo" | ".zdebug_macro.dwo" => {
485
+ Ok ( ".debug_macro.dwo" | ".zdebug_macro.dwo" ) => {
486
486
let data = section. compressed_data ( ) ?. decompress ( ) ?;
487
487
update ! ( debug_macro += self . obj. append_to_debug_macro( & data) ) ;
488
488
}
489
- ".debug_rnglists.dwo" | ".zdebug_rnglists.dwo" => {
489
+ Ok ( ".debug_rnglists.dwo" | ".zdebug_rnglists.dwo" ) => {
490
490
let data = section. compressed_data ( ) ?. decompress ( ) ?;
491
491
update ! ( debug_rnglists += self . obj. append_to_debug_rnglists( & data) ) ;
492
492
}
493
- ".debug_str_offsets.dwo" | ".zdebug_str_offsets.dwo" => {
493
+ Ok ( ".debug_str_offsets.dwo" | ".zdebug_str_offsets.dwo" ) => {
494
494
let debug_str_offsets_section = {
495
495
let data = section. compressed_data ( ) ?. decompress ( ) ?;
496
496
let data_ref = sess. alloc_owned_cow ( data) ;
@@ -580,15 +580,15 @@ impl<'file> InProgressDwarfPackage<'file> {
580
580
581
581
for section in input. sections ( ) {
582
582
let data = section. compressed_data ( ) ?. decompress ( ) ?;
583
- let ( is_debug_types, mut iter) = match section. name ( ) . map_err ( Error :: NonUtf8SectionName ) ? {
584
- ".debug_info.dwo" | ".zdebug_info.dwo"
583
+ let ( is_debug_types, mut iter) = match section. name ( ) {
584
+ Ok ( ".debug_info.dwo" | ".zdebug_info.dwo" )
585
585
// Report an error if a input DWARF package has multiple `.debug_info`
586
586
// sections.
587
587
if seen_debug_info && cu_index. is_some ( ) =>
588
588
{
589
589
return Err ( Error :: MultipleDebugInfoSection ) ;
590
590
}
591
- ".debug_info.dwo" | ".zdebug_info.dwo" => {
591
+ Ok ( ".debug_info.dwo" | ".zdebug_info.dwo" ) => {
592
592
seen_debug_info = true ;
593
593
(
594
594
false ,
@@ -597,14 +597,14 @@ impl<'file> InProgressDwarfPackage<'file> {
597
597
) ,
598
598
)
599
599
}
600
- ".debug_types.dwo" | ".zdebug_types.dwo"
600
+ Ok ( ".debug_types.dwo" | ".zdebug_types.dwo" )
601
601
// Report an error if a input DWARF package has multiple `.debug_types`
602
602
// sections.
603
603
if seen_debug_types && tu_index. is_some ( ) =>
604
604
{
605
605
return Err ( Error :: MultipleDebugTypesSection ) ;
606
606
}
607
- ".debug_types.dwo" | ".zdebug_types.dwo" => {
607
+ Ok ( ".debug_types.dwo" | ".zdebug_types.dwo" ) => {
608
608
seen_debug_types = true ;
609
609
(
610
610
true ,
0 commit comments