File tree Expand file tree Collapse file tree
objdiff-core/src/arch/ppc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ impl Arch for ArchPpc {
475475
476476 fn post_init ( & mut self , _sections : & [ Section ] , _symbols : & [ Symbol ] , symbol_indices : & [ usize ] ) {
477477 // Change the indices used as keys from the original symbol indices to the new symbol array indices
478- if let Some ( new_map) = Self :: convert_extab_map_indices ( & self , symbol_indices) {
478+ if let Some ( new_map) = Self :: convert_extab_map_indices ( self , symbol_indices) {
479479 self . extab . replace ( new_map) ;
480480 }
481481 }
@@ -486,11 +486,14 @@ impl ArchPpc {
486486 self . extab . as_ref ( ) ?. get ( & symbol_index)
487487 }
488488
489- pub fn convert_extab_map_indices ( & self , symbol_indices : & [ usize ] ) -> Option < BTreeMap < usize , ExceptionInfo > > {
489+ pub fn convert_extab_map_indices (
490+ & self ,
491+ symbol_indices : & [ usize ]
492+ ) -> Option < BTreeMap < usize , ExceptionInfo > > {
490493 let new_map: BTreeMap < usize , ExceptionInfo > =
491494 self . extab . as_ref ( ) ?. iter ( ) . map ( |e| ( symbol_indices[ * e. 0 + 1 ] , e. 1 . clone ( ) ) ) . collect ( ) ;
492495
493- return Some ( new_map)
496+ Some ( new_map)
494497 }
495498}
496499
You can’t perform that action at this time.
0 commit comments