Skip to content

Commit 369407f

Browse files
committed
[MachO] Shuffle some things around in ParseSymtab (NFC)
llvm-svn: 373954
1 parent 8b6dcc1 commit 369407f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -3685,7 +3685,7 @@ size_t ObjectFileMachO::ParseSymtab() {
36853685
if (!ParseNList(nlist_data, nlist_data_offset, nlist_byte_size, nlist))
36863686
break;
36873687

3688-
SymbolType type = eSymbolTypeInvalid;
3688+
const char *symbol_name_non_abi_mangled = nullptr;
36893689
const char *symbol_name = nullptr;
36903690

36913691
if (have_strtab_data) {
@@ -3710,17 +3710,17 @@ size_t ObjectFileMachO::ParseSymtab() {
37103710
str_error))
37113711
symbol_name = memory_symbol_name.c_str();
37123712
}
3713-
const char *symbol_name_non_abi_mangled = nullptr;
37143713

3714+
SymbolType type = eSymbolTypeInvalid;
37153715
SectionSP symbol_section;
37163716
lldb::addr_t symbol_byte_size = 0;
37173717
bool add_nlist = true;
37183718
bool is_gsym = false;
3719-
bool is_debug = ((nlist.n_type & N_STAB) != 0);
37203719
bool demangled_is_synthesized = false;
37213720
bool set_value = true;
3722-
assert(sym_idx < num_syms);
37233721

3722+
const bool is_debug = ((nlist.n_type & N_STAB) != 0);
3723+
assert(sym_idx < num_syms);
37243724
sym[sym_idx].SetDebug(is_debug);
37253725

37263726
if (is_debug) {
@@ -4073,7 +4073,6 @@ size_t ObjectFileMachO::ParseSymtab() {
40734073
break;
40744074
}
40754075
} else {
4076-
// uint8_t n_pext = N_PEXT & nlist.n_type;
40774076
uint8_t n_type = N_TYPE & nlist.n_type;
40784077
sym[sym_idx].SetExternal((N_EXT & nlist.n_type) != 0);
40794078

0 commit comments

Comments
 (0)