Lines Matching refs:sc

364     SymbolContext sc;
365 sc.module_sp = shared_from_this();
370 sc.comp_unit = symbols->GetCompileUnitAtIndex(cu_idx).get();
371 if (sc.comp_unit)
373 sc.function = NULL;
374 symbols->ParseVariablesForContext(sc);
376 symbols->ParseCompileUnitFunctions(sc);
378 for (size_t func_idx = 0; (sc.function = sc.comp_unit->GetFunctionAtIndex(func_idx).get()) != NULL; ++func_idx)
380 symbols->ParseFunctionBlocks(sc);
383 symbols->ParseVariablesForContext(sc);
388 sc.function = NULL;
389 symbols->ParseTypes(sc);
395 Module::CalculateSymbolContext(SymbolContext* sc)
397 sc->module_sp = shared_from_this();
451 Module::ResolveSymbolContextForAddress (const Address& so_addr, uint32_t resolve_scope, SymbolContext& sc)
457 sc.Clear(false);
467 sc.module_sp = shared_from_this();
479 resolved_flags |= symbols->ResolveSymbolContext (so_addr, resolve_scope, sc);
493 sc.symbol = symtab->FindSymbolContainingFileAddress(so_addr.GetFileAddress());
494 if (sc.symbol)
574 SymbolContext sc;
575 sc.module_sp = shared_from_this();
579 sc.comp_unit = GetCompileUnitAtIndex(i).get();
580 if (sc.comp_unit)
582 if (FileSpec::Equal (*sc.comp_unit, path, compare_directory))
583 sc_list.Append(sc);
637 SymbolContext sc;
641 if (sc_list.GetContextAtIndex(i, sc))
643 const char *func_name = sc.GetFunctionName().GetCString();
703 SymbolContext sc(this);
711 sc.symbol = symtab->SymbolAtIndex(symbol_indexes[i]);
712 SymbolType sym_type = sc.symbol->GetType();
713 if (sc.symbol && (sym_type == eSymbolTypeCode ||
715 sc_list.Append(sc);
724 const SymbolContext &sc = sc_list[i];
725 if (sc.block)
727 file_addr_to_index[sc.function->GetAddressRange().GetBaseAddress().GetFileAddress()] = i;
735 sc.symbol = symtab->SymbolAtIndex(symbol_indexes[i]);
736 SymbolType sym_type = sc.symbol->GetType();
737 if (sc.symbol && (sym_type == eSymbolTypeCode ||
740 FileAddrToIndexMap::const_iterator pos = file_addr_to_index.find(sc.symbol->GetAddress().GetFileAddress());
742 sc_list.Append(sc);
744 sc_list[pos->second].symbol = sc.symbol;
756 Module::FindTypes_Impl (const SymbolContext& sc,
764 if (sc.module_sp.get() == NULL || sc.module_sp.get() == this)
768 return symbols->FindTypes(sc, name, namespace_decl, append, max_matches, types);
774 Module::FindTypesInNamespace (const SymbolContext& sc,
781 return FindTypes_Impl(sc, type_name, namespace_decl, append, max_matches, type_list);
785 Module::FindFirstType (const SymbolContext& sc,
790 const size_t num_matches = FindTypes (sc, name, exact_match, 1, type_list);
798 Module::FindTypes (const SymbolContext& sc,
823 if (FindTypes_Impl(sc, type_basename_const_str, NULL, append, max_matches, types))
836 num_matches = FindTypes_Impl(sc, ConstString(type_name_cstr), NULL, append, max_matches, types);
842 num_matches = FindTypes_Impl(sc, name, NULL, append, max_matches, types);
1173 SymbolContext sc;
1174 CalculateSymbolContext (&sc);
1177 sc.symbol = symtab->SymbolAtIndex (symbol_indexes[i]);
1178 if (sc.symbol)
1179 sc_list.Append (sc);