Lines Matching defs:sym
1784 Symbol *sym = NULL;
1988 sym = symtab->Resize (symtab_load_command.nsyms + m_dysymtab.nindirectsyms + unmapped_local_symbols_found - m_dysymtab.nlocalsym);
2037 sym[sym_idx].SetDebug (is_debug);
2062 sym[sym_idx].SetExternal(true);
2141 // N_RSYM - register sym: name,,NO_SECT,type,register
2189 sym[sym_idx - 1].GetMangled().SetValue(ConstString(symbol_name), false);
2204 const char *so_path = sym[sym_idx - 1].GetMangled().GetDemangledName().AsCString();
2229 sym[sym_idx - 1].GetMangled().SetValue(ConstString(full_so_path.c_str()), false);
2248 // N_LSYM - local sym: name,,NO_SECT,type,offset
2388 sym[sym_idx].SetExternal((NlistMaskExternal & nlist.n_type) != 0);
2534 sym[sym_idx].GetMangled().SetMangledName (ConstString(symbol_name_non_abi_mangled));
2535 sym[sym_idx].GetMangled().SetDemangledName (ConstString(symbol_name));
2550 sym[sym_idx].GetMangled().SetValue(const_symbol_name, symbol_name_is_mangled);
2552 N_GSYM_name_to_sym_idx[sym[sym_idx].GetMangled().GetName(Mangled::ePreferMangled).GetCString()] = sym_idx;
2619 if (sym[sym_idx].GetMangled().GetName(Mangled::ePreferMangled) == sym[pos->second].GetMangled().GetName(Mangled::ePreferMangled))
2624 sym[pos->second].SetFlags (nlist.n_type << 16 | nlist.n_desc);
2625 sym[sym_idx].Clear();
2639 if (sym[sym_idx].GetMangled().GetName(Mangled::ePreferMangled) == sym[pos->second].GetMangled().GetName(Mangled::ePreferMangled))
2644 sym[pos->second].SetFlags (nlist.n_type << 16 | nlist.n_desc);
2645 sym[sym_idx].Clear();
2652 ConstNameToSymbolIndexMap::const_iterator pos = N_GSYM_name_to_sym_idx.find(sym[sym_idx].GetMangled().GetName(Mangled::ePreferMangled).GetCString());
2659 sym[GSYM_sym_idx].GetAddress().SetSection (symbol_section);
2660 sym[GSYM_sym_idx].GetAddress().SetOffset (symbol_value);
2663 sym[GSYM_sym_idx].SetFlags (nlist.n_type << 16 | nlist.n_desc);
2664 sym[sym_idx].Clear();
2671 sym[sym_idx].SetID (nlist_idx);
2672 sym[sym_idx].SetType (type);
2673 sym[sym_idx].GetAddress().SetSection (symbol_section);
2674 sym[sym_idx].GetAddress().SetOffset (symbol_value);
2675 sym[sym_idx].SetFlags (nlist.n_type << 16 | nlist.n_desc);
2678 sym[sym_idx].SetByteSize(symbol_byte_size);
2681 sym[sym_idx].SetDemangledNameIsSynthesized(true);
2686 sym[sym_idx].Clear();
2705 // If the sym array was not created while parsing the DSC unmapped
2707 if (sym == NULL)
2709 sym = symtab->Resize (symtab_load_command.nsyms + m_dysymtab.nindirectsyms);
2776 sym[sym_idx].SetDebug (is_debug);
2801 sym[sym_idx].SetExternal(true);
2880 // N_RSYM - register sym: name,,NO_SECT,type,register
2928 sym[sym_idx - 1].GetMangled().SetValue(ConstString(symbol_name), false);
2943 const char *so_path = sym
2968 sym[sym_idx - 1].GetMangled().SetValue(ConstString(full_so_path.c_str()), false);
2988 // N_LSYM - local sym: name,,NO_SECT,type,offset
3128 sym[sym_idx].SetExternal((NlistMaskExternal & nlist.n_type) != 0);
3279 sym[sym_idx].GetMangled().SetMangledName (ConstString(symbol_name_non_abi_mangled));
3280 sym[sym_idx].GetMangled().SetDemangledName (ConstString(symbol_name));
3295 sym[sym_idx].GetMangled().SetValue(const_symbol_name, symbol_name_is_mangled);
3298 N_GSYM_name_to_sym_idx[sym[sym_idx].GetMangled().GetName(Mangled::ePreferMangled).GetCString()] = sym_idx;
3361 if (sym[sym_idx].GetMangled().GetName(Mangled::ePreferMangled) == sym[pos->second].GetMangled().GetName(Mangled::ePreferMangled))
3366 sym[pos->second].SetFlags (nlist.n_type << 16 | nlist.n_desc);
3367 sym[sym_idx].Clear();
3381 if (sym[sym_idx].GetMangled().GetName(Mangled::ePreferMangled) == sym[pos->second].GetMangled().GetName(Mangled::ePreferMangled))
3386 sym[pos->second].SetFlags (nlist.n_type << 16 | nlist.n_desc);
3387 sym[sym_idx].Clear();
3394 ConstNameToSymbolIndexMap::const_iterator pos = N_GSYM_name_to_sym_idx.find(sym[sym_idx].GetMangled().GetName(Mangled::ePreferMangled).GetCString());
3401 sym[GSYM_sym_idx].GetAddress().SetSection (symbol_section);
3402 sym[GSYM_sym_idx].GetAddress().SetOffset (symbol_value);
3405 sym[GSYM_sym_idx].SetFlags (nlist.n_type << 16 | nlist.n_desc);
3406 sym[sym_idx].Clear();
3413 sym[sym_idx].SetID (nlist_idx);
3414 sym[sym_idx].SetType (type);
3415 sym[sym_idx].GetAddress().SetSection (symbol_section);
3416 sym[sym_idx].GetAddress().SetOffset (symbol_value);
3417 sym[sym_idx].SetFlags (nlist.n_type << 16 | nlist.n_desc);
3420 sym[sym_idx].SetByteSize(symbol_byte_size);
3423 sym[sym_idx].SetDemangledNameIsSynthesized(true);
3429 sym[sym_idx].Clear();
3482 sym = symtab->Resize (num_syms);
3524 sym[sym_idx].SetID (synthetic_sym_id++);
3525 sym[sym_idx].GetMangled().SetDemangledName(ConstString(synthetic_function_symbol));
3526 sym[sym_idx].SetType (eSymbolTypeCode);
3527 sym[sym_idx].SetIsSynthetic (true);
3528 sym[sym_idx].GetAddress() = symbol_addr;
3530 sym[sym_idx].SetFlags (symbol_flags);
3532 sym[sym_idx].SetByteSize (symbol_byte_size);
3546 sym = symtab->Resize (num_syms);
3618 sym = symtab->Resize (++num_syms);
3621 sym[sym_idx].SetID (synthetic_sym_id++);
3622 sym[sym_idx].GetMangled() = stub_symbol_mangled_name;
3623 sym[sym_idx].SetType (eSymbolTypeTrampoline);
3624 sym[sym_idx].SetIsSynthetic (true);
3625 sym[sym_idx].GetAddress() = so_addr;
3626 sym[sym_idx].SetByteSize (symbol_stub_byte_size);