Skip to content

Commit

Permalink
[MachO] Shuffle some things around in ParseSymtab (NFC)
Browse files Browse the repository at this point in the history
llvm-svn: 373954
  • Loading branch information
JDevlieghere committed Oct 7, 2019
1 parent 8b6dcc1 commit 369407f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Expand Up @@ -3685,7 +3685,7 @@ size_t ObjectFileMachO::ParseSymtab() {
if (!ParseNList(nlist_data, nlist_data_offset, nlist_byte_size, nlist))
break;

SymbolType type = eSymbolTypeInvalid;
const char *symbol_name_non_abi_mangled = nullptr;
const char *symbol_name = nullptr;

if (have_strtab_data) {
Expand All @@ -3710,17 +3710,17 @@ size_t ObjectFileMachO::ParseSymtab() {
str_error))
symbol_name = memory_symbol_name.c_str();
}
const char *symbol_name_non_abi_mangled = nullptr;

SymbolType type = eSymbolTypeInvalid;
SectionSP symbol_section;
lldb::addr_t symbol_byte_size = 0;
bool add_nlist = true;
bool is_gsym = false;
bool is_debug = ((nlist.n_type & N_STAB) != 0);
bool demangled_is_synthesized = false;
bool set_value = true;
assert(sym_idx < num_syms);

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

if (is_debug) {
Expand Down Expand Up @@ -4073,7 +4073,6 @@ size_t ObjectFileMachO::ParseSymtab() {
break;
}
} else {
// uint8_t n_pext = N_PEXT & nlist.n_type;
uint8_t n_type = N_TYPE & nlist.n_type;
sym[sym_idx].SetExternal((N_EXT & nlist.n_type) != 0);

Expand Down

0 comments on commit 369407f

Please sign in to comment.