Lines Matching refs:sym
164 bool lldb_private::npdb::SymbolHasAddress(const CVSymbol &sym) { in SymbolHasAddress() argument
165 switch (sym.kind()) { in SymbolHasAddress()
191 bool lldb_private::npdb::SymbolIsCode(const CVSymbol &sym) { in SymbolIsCode() argument
192 switch (sym.kind()) { in SymbolIsCode()
209 template <typename RecordT> RecordT createRecord(const CVSymbol &sym) { in createRecord() argument
210 RecordT record(static_cast<SymbolRecordKind>(sym.kind())); in createRecord()
211 cantFail(SymbolDeserializer::deserializeAs<RecordT>(sym, record)); in createRecord()
216 static SegmentOffset GetSegmentAndOffset(const CVSymbol &sym) { in GetSegmentAndOffset() argument
217 RecordT record = createRecord<RecordT>(sym); in GetSegmentAndOffset()
222 SegmentOffset GetSegmentAndOffset<TrampolineSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
223 TrampolineSym record = createRecord<TrampolineSym>(sym); in GetSegmentAndOffset()
227 template <> SegmentOffset GetSegmentAndOffset<Thunk32Sym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
228 Thunk32Sym record = createRecord<Thunk32Sym>(sym); in GetSegmentAndOffset()
233 SegmentOffset GetSegmentAndOffset<CoffGroupSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
234 CoffGroupSym record = createRecord<CoffGroupSym>(sym); in GetSegmentAndOffset()
238 template <> SegmentOffset GetSegmentAndOffset<DataSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
239 DataSym record = createRecord<DataSym>(sym); in GetSegmentAndOffset()
244 SegmentOffset GetSegmentAndOffset<ThreadLocalDataSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
245 ThreadLocalDataSym record = createRecord<ThreadLocalDataSym>(sym); in GetSegmentAndOffset()
249 SegmentOffset lldb_private::npdb::GetSegmentAndOffset(const CVSymbol &sym) { in GetSegmentAndOffset() argument
250 switch (sym.kind()) { in GetSegmentAndOffset()
257 return ::GetSegmentAndOffset<ProcSym>(sym); in GetSegmentAndOffset()
259 return ::GetSegmentAndOffset<Thunk32Sym>(sym); in GetSegmentAndOffset()
262 return ::GetSegmentAndOffset<TrampolineSym>(sym); in GetSegmentAndOffset()
265 return ::GetSegmentAndOffset<CoffGroupSym>(sym); in GetSegmentAndOffset()
268 return ::GetSegmentAndOffset<BlockSym>(sym); in GetSegmentAndOffset()
271 return ::GetSegmentAndOffset<LabelSym>(sym); in GetSegmentAndOffset()
274 return ::GetSegmentAndOffset<CallSiteInfoSym>(sym); in GetSegmentAndOffset()
277 return ::GetSegmentAndOffset<HeapAllocationSiteSym>(sym); in GetSegmentAndOffset()
283 return ::GetSegmentAndOffset<DataSym>(sym); in GetSegmentAndOffset()
287 return ::GetSegmentAndOffset<ThreadLocalDataSym>(sym); in GetSegmentAndOffset()
296 SegmentOffsetLength GetSegmentOffsetAndLength(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
297 RecordT record = createRecord<RecordT>(sym); in GetSegmentOffsetAndLength()
303 GetSegmentOffsetAndLength<TrampolineSym>(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
304 TrampolineSym record = createRecord<TrampolineSym>(sym); in GetSegmentOffsetAndLength()
309 SegmentOffsetLength GetSegmentOffsetAndLength<Thunk32Sym>(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
310 Thunk32Sym record = createRecord<Thunk32Sym>(sym); in GetSegmentOffsetAndLength()
316 GetSegmentOffsetAndLength<CoffGroupSym>(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
317 CoffGroupSym record = createRecord<CoffGroupSym>(sym); in GetSegmentOffsetAndLength()
322 lldb_private::npdb::GetSegmentOffsetAndLength(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
323 switch (sym.kind()) { in GetSegmentOffsetAndLength()
330 return ::GetSegmentOffsetAndLength<ProcSym>(sym); in GetSegmentOffsetAndLength()
332 return ::GetSegmentOffsetAndLength<Thunk32Sym>(sym); in GetSegmentOffsetAndLength()
335 return ::GetSegmentOffsetAndLength<TrampolineSym>(sym); in GetSegmentOffsetAndLength()
338 return ::GetSegmentOffsetAndLength<CoffGroupSym>(sym); in GetSegmentOffsetAndLength()
341 return ::GetSegmentOffsetAndLength<BlockSym>(sym); in GetSegmentOffsetAndLength()
456 VariableInfo lldb_private::npdb::GetVariableNameInfo(CVSymbol sym) { in GetVariableNameInfo() argument
459 if (sym.kind() == S_REGREL32) { in GetVariableNameInfo()
461 cantFail(SymbolDeserializer::deserializeAs<RegRelativeSym>(sym, reg)); in GetVariableNameInfo()
467 if (sym.kind() == S_REGISTER) { in GetVariableNameInfo()
469 cantFail(SymbolDeserializer::deserializeAs<RegisterSym>(sym, reg)); in GetVariableNameInfo()
475 if (sym.kind() == S_LOCAL) { in GetVariableNameInfo()
477 cantFail(SymbolDeserializer::deserializeAs<LocalSym>(sym, local)); in GetVariableNameInfo()
483 if (sym.kind() == S_GDATA32 || sym.kind() == S_LDATA32) { in GetVariableNameInfo()
485 cantFail(SymbolDeserializer::deserializeAs<DataSym>(sym, data)); in GetVariableNameInfo()
491 if (sym.kind() == S_GTHREAD32 || sym.kind() == S_LTHREAD32) { in GetVariableNameInfo()
493 cantFail(SymbolDeserializer::deserializeAs<ThreadLocalDataSym>(sym, data)); in GetVariableNameInfo()
499 if (sym.kind() == S_CONSTANT) { in GetVariableNameInfo()
501 cantFail(SymbolDeserializer::deserializeAs<ConstantSym>(sym, constant)); in GetVariableNameInfo()
584 CVSymbol sym = index.ReadSymbolRecord(var_id); in GetVariableLocationInfo() local
586 VariableInfo result = GetVariableNameInfo(sym); in GetVariableLocationInfo()
588 if (sym.kind() == S_REGREL32) { in GetVariableLocationInfo()
590 cantFail(SymbolDeserializer::deserializeAs<RegRelativeSym>(sym, reg)); in GetVariableLocationInfo()
597 if (sym.kind() == S_REGISTER) { in GetVariableLocationInfo()
599 cantFail(SymbolDeserializer::deserializeAs<RegisterSym>(sym, reg)); in GetVariableLocationInfo()
605 if (sym.kind() == S_LOCAL) { in GetVariableLocationInfo()
607 cantFail(SymbolDeserializer::deserializeAs<LocalSym>(sym, local)); in GetVariableLocationInfo()
610 var_id.offset + sym.RecordData.size()); in GetVariableLocationInfo()