File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
lldb/source/Plugins/ObjectFile/Mach-O Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3685,7 +3685,7 @@ size_t ObjectFileMachO::ParseSymtab() {
3685
3685
if (!ParseNList (nlist_data, nlist_data_offset, nlist_byte_size, nlist))
3686
3686
break ;
3687
3687
3688
- SymbolType type = eSymbolTypeInvalid ;
3688
+ const char *symbol_name_non_abi_mangled = nullptr ;
3689
3689
const char *symbol_name = nullptr ;
3690
3690
3691
3691
if (have_strtab_data) {
@@ -3710,17 +3710,17 @@ size_t ObjectFileMachO::ParseSymtab() {
3710
3710
str_error))
3711
3711
symbol_name = memory_symbol_name.c_str ();
3712
3712
}
3713
- const char *symbol_name_non_abi_mangled = nullptr ;
3714
3713
3714
+ SymbolType type = eSymbolTypeInvalid;
3715
3715
SectionSP symbol_section;
3716
3716
lldb::addr_t symbol_byte_size = 0 ;
3717
3717
bool add_nlist = true ;
3718
3718
bool is_gsym = false ;
3719
- bool is_debug = ((nlist.n_type & N_STAB) != 0 );
3720
3719
bool demangled_is_synthesized = false ;
3721
3720
bool set_value = true ;
3722
- assert (sym_idx < num_syms);
3723
3721
3722
+ const bool is_debug = ((nlist.n_type & N_STAB) != 0 );
3723
+ assert (sym_idx < num_syms);
3724
3724
sym[sym_idx].SetDebug (is_debug);
3725
3725
3726
3726
if (is_debug) {
@@ -4073,7 +4073,6 @@ size_t ObjectFileMachO::ParseSymtab() {
4073
4073
break ;
4074
4074
}
4075
4075
} else {
4076
- // uint8_t n_pext = N_PEXT & nlist.n_type;
4077
4076
uint8_t n_type = N_TYPE & nlist.n_type ;
4078
4077
sym[sym_idx].SetExternal ((N_EXT & nlist.n_type ) != 0 );
4079
4078
You can’t perform that action at this time.
0 commit comments