Lines Matching refs:sym
185 bool lldb_private::npdb::SymbolHasAddress(const CVSymbol &sym) { in SymbolHasAddress() argument
186 switch (sym.kind()) { in SymbolHasAddress()
212 bool lldb_private::npdb::SymbolIsCode(const CVSymbol &sym) { in SymbolIsCode() argument
213 switch (sym.kind()) { in SymbolIsCode()
230 template <typename RecordT> RecordT createRecord(const CVSymbol &sym) { in createRecord() argument
231 RecordT record(static_cast<SymbolRecordKind>(sym.kind())); in createRecord()
232 cantFail(SymbolDeserializer::deserializeAs<RecordT>(sym, record)); in createRecord()
237 static SegmentOffset GetSegmentAndOffset(const CVSymbol &sym) { in GetSegmentAndOffset() argument
238 RecordT record = createRecord<RecordT>(sym); in GetSegmentAndOffset()
243 SegmentOffset GetSegmentAndOffset<TrampolineSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
244 TrampolineSym record = createRecord<TrampolineSym>(sym); in GetSegmentAndOffset()
248 template <> SegmentOffset GetSegmentAndOffset<Thunk32Sym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
249 Thunk32Sym record = createRecord<Thunk32Sym>(sym); in GetSegmentAndOffset()
254 SegmentOffset GetSegmentAndOffset<CoffGroupSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
255 CoffGroupSym record = createRecord<CoffGroupSym>(sym); in GetSegmentAndOffset()
259 template <> SegmentOffset GetSegmentAndOffset<DataSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
260 DataSym record = createRecord<DataSym>(sym); in GetSegmentAndOffset()
265 SegmentOffset GetSegmentAndOffset<ThreadLocalDataSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
266 ThreadLocalDataSym record = createRecord<ThreadLocalDataSym>(sym); in GetSegmentAndOffset()
270 SegmentOffset lldb_private::npdb::GetSegmentAndOffset(const CVSymbol &sym) { in GetSegmentAndOffset() argument
271 switch (sym.kind()) { in GetSegmentAndOffset()
278 return ::GetSegmentAndOffset<ProcSym>(sym); in GetSegmentAndOffset()
280 return ::GetSegmentAndOffset<Thunk32Sym>(sym); in GetSegmentAndOffset()
283 return ::GetSegmentAndOffset<TrampolineSym>(sym); in GetSegmentAndOffset()
286 return ::GetSegmentAndOffset<CoffGroupSym>(sym); in GetSegmentAndOffset()
289 return ::GetSegmentAndOffset<BlockSym>(sym); in GetSegmentAndOffset()
292 return ::GetSegmentAndOffset<LabelSym>(sym); in GetSegmentAndOffset()
295 return ::GetSegmentAndOffset<CallSiteInfoSym>(sym); in GetSegmentAndOffset()
298 return ::GetSegmentAndOffset<HeapAllocationSiteSym>(sym); in GetSegmentAndOffset()
304 return ::GetSegmentAndOffset<DataSym>(sym); in GetSegmentAndOffset()
308 return ::GetSegmentAndOffset<ThreadLocalDataSym>(sym); in GetSegmentAndOffset()
317 SegmentOffsetLength GetSegmentOffsetAndLength(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
318 RecordT record = createRecord<RecordT>(sym); in GetSegmentOffsetAndLength()
324 GetSegmentOffsetAndLength<TrampolineSym>(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
325 TrampolineSym record = createRecord<TrampolineSym>(sym); in GetSegmentOffsetAndLength()
330 SegmentOffsetLength GetSegmentOffsetAndLength<Thunk32Sym>(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
331 Thunk32Sym record = createRecord<Thunk32Sym>(sym); in GetSegmentOffsetAndLength()
337 GetSegmentOffsetAndLength<CoffGroupSym>(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
338 CoffGroupSym record = createRecord<CoffGroupSym>(sym); in GetSegmentOffsetAndLength()
343 lldb_private::npdb::GetSegmentOffsetAndLength(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
344 switch (sym.kind()) { in GetSegmentOffsetAndLength()
351 return ::GetSegmentOffsetAndLength<ProcSym>(sym); in GetSegmentOffsetAndLength()
353 return ::GetSegmentOffsetAndLength<Thunk32Sym>(sym); in GetSegmentOffsetAndLength()
356 return ::GetSegmentOffsetAndLength<TrampolineSym>(sym); in GetSegmentOffsetAndLength()
359 return ::GetSegmentOffsetAndLength<CoffGroupSym>(sym); in GetSegmentOffsetAndLength()
362 return ::GetSegmentOffsetAndLength<BlockSym>(sym); in GetSegmentOffsetAndLength()
477 VariableInfo lldb_private::npdb::GetVariableNameInfo(CVSymbol sym) { in GetVariableNameInfo() argument
480 if (sym.kind() == S_REGREL32) { in GetVariableNameInfo()
482 cantFail(SymbolDeserializer::deserializeAs<RegRelativeSym>(sym, reg)); in GetVariableNameInfo()
488 if (sym.kind() == S_REGISTER) { in GetVariableNameInfo()
490 cantFail(SymbolDeserializer::deserializeAs<RegisterSym>(sym, reg)); in GetVariableNameInfo()
496 if (sym.kind() == S_LOCAL) { in GetVariableNameInfo()
498 cantFail(SymbolDeserializer::deserializeAs<LocalSym>(sym, local)); in GetVariableNameInfo()
506 if (sym.kind() == S_GDATA32 || sym.kind() == S_LDATA32) { in GetVariableNameInfo()
508 cantFail(SymbolDeserializer::deserializeAs<DataSym>(sym, data)); in GetVariableNameInfo()
514 if (sym.kind() == S_GTHREAD32 || sym.kind() == S_LTHREAD32) { in GetVariableNameInfo()
516 cantFail(SymbolDeserializer::deserializeAs<ThreadLocalDataSym>(sym, data)); in GetVariableNameInfo()
522 if (sym.kind() == S_CONSTANT) { in GetVariableNameInfo()
524 cantFail(SymbolDeserializer::deserializeAs<ConstantSym>(sym, constant)); in GetVariableNameInfo()
608 CVSymbol sym = index.ReadSymbolRecord(var_id); in GetVariableLocationInfo() local
610 VariableInfo result = GetVariableNameInfo(sym); in GetVariableLocationInfo()
612 if (sym.kind() == S_REGREL32) { in GetVariableLocationInfo()
614 cantFail(SymbolDeserializer::deserializeAs<RegRelativeSym>(sym, reg)); in GetVariableLocationInfo()
621 if (sym.kind() == S_REGISTER) { in GetVariableLocationInfo()
623 cantFail(SymbolDeserializer::deserializeAs<RegisterSym>(sym, reg)); in GetVariableLocationInfo()
629 if (sym.kind() == S_LOCAL) { in GetVariableLocationInfo()
631 cantFail(SymbolDeserializer::deserializeAs<LocalSym>(sym, local)); in GetVariableLocationInfo()
634 var_id.offset + sym.RecordData.size()); in GetVariableLocationInfo()