Lines Matching refs:sym

163 bool lldb_private::npdb::SymbolHasAddress(const CVSymbol &sym) {  in SymbolHasAddress()  argument
164 switch (sym.kind()) { in SymbolHasAddress()
190 bool lldb_private::npdb::SymbolIsCode(const CVSymbol &sym) { in SymbolIsCode() argument
191 switch (sym.kind()) { in SymbolIsCode()
208 template <typename RecordT> RecordT createRecord(const CVSymbol &sym) { in createRecord() argument
209 RecordT record(static_cast<SymbolRecordKind>(sym.kind())); in createRecord()
210 cantFail(SymbolDeserializer::deserializeAs<RecordT>(sym, record)); in createRecord()
215 static SegmentOffset GetSegmentAndOffset(const CVSymbol &sym) { in GetSegmentAndOffset() argument
216 RecordT record = createRecord<RecordT>(sym); in GetSegmentAndOffset()
221 SegmentOffset GetSegmentAndOffset<TrampolineSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
222 TrampolineSym record = createRecord<TrampolineSym>(sym); in GetSegmentAndOffset()
226 template <> SegmentOffset GetSegmentAndOffset<Thunk32Sym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
227 Thunk32Sym record = createRecord<Thunk32Sym>(sym); in GetSegmentAndOffset()
232 SegmentOffset GetSegmentAndOffset<CoffGroupSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
233 CoffGroupSym record = createRecord<CoffGroupSym>(sym); in GetSegmentAndOffset()
237 template <> SegmentOffset GetSegmentAndOffset<DataSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
238 DataSym record = createRecord<DataSym>(sym); in GetSegmentAndOffset()
243 SegmentOffset GetSegmentAndOffset<ThreadLocalDataSym>(const CVSymbol &sym) { in GetSegmentAndOffset() argument
244 ThreadLocalDataSym record = createRecord<ThreadLocalDataSym>(sym); in GetSegmentAndOffset()
248 SegmentOffset lldb_private::npdb::GetSegmentAndOffset(const CVSymbol &sym) { in GetSegmentAndOffset() argument
249 switch (sym.kind()) { in GetSegmentAndOffset()
256 return ::GetSegmentAndOffset<ProcSym>(sym); in GetSegmentAndOffset()
258 return ::GetSegmentAndOffset<Thunk32Sym>(sym); in GetSegmentAndOffset()
261 return ::GetSegmentAndOffset<TrampolineSym>(sym); in GetSegmentAndOffset()
264 return ::GetSegmentAndOffset<CoffGroupSym>(sym); in GetSegmentAndOffset()
267 return ::GetSegmentAndOffset<BlockSym>(sym); in GetSegmentAndOffset()
270 return ::GetSegmentAndOffset<LabelSym>(sym); in GetSegmentAndOffset()
273 return ::GetSegmentAndOffset<CallSiteInfoSym>(sym); in GetSegmentAndOffset()
276 return ::GetSegmentAndOffset<HeapAllocationSiteSym>(sym); in GetSegmentAndOffset()
282 return ::GetSegmentAndOffset<DataSym>(sym); in GetSegmentAndOffset()
286 return ::GetSegmentAndOffset<ThreadLocalDataSym>(sym); in GetSegmentAndOffset()
295 SegmentOffsetLength GetSegmentOffsetAndLength(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
296 RecordT record = createRecord<RecordT>(sym); in GetSegmentOffsetAndLength()
302 GetSegmentOffsetAndLength<TrampolineSym>(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
303 TrampolineSym record = createRecord<TrampolineSym>(sym); in GetSegmentOffsetAndLength()
308 SegmentOffsetLength GetSegmentOffsetAndLength<Thunk32Sym>(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
309 Thunk32Sym record = createRecord<Thunk32Sym>(sym); in GetSegmentOffsetAndLength()
315 GetSegmentOffsetAndLength<CoffGroupSym>(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
316 CoffGroupSym record = createRecord<CoffGroupSym>(sym); in GetSegmentOffsetAndLength()
321 lldb_private::npdb::GetSegmentOffsetAndLength(const CVSymbol &sym) { in GetSegmentOffsetAndLength() argument
322 switch (sym.kind()) { in GetSegmentOffsetAndLength()
329 return ::GetSegmentOffsetAndLength<ProcSym>(sym); in GetSegmentOffsetAndLength()
331 return ::GetSegmentOffsetAndLength<Thunk32Sym>(sym); in GetSegmentOffsetAndLength()
334 return ::GetSegmentOffsetAndLength<TrampolineSym>(sym); in GetSegmentOffsetAndLength()
337 return ::GetSegmentOffsetAndLength<CoffGroupSym>(sym); in GetSegmentOffsetAndLength()
340 return ::GetSegmentOffsetAndLength<BlockSym>(sym); in GetSegmentOffsetAndLength()
455 VariableInfo lldb_private::npdb::GetVariableNameInfo(CVSymbol sym) { in GetVariableNameInfo() argument
458 if (sym.kind() == S_REGREL32) { in GetVariableNameInfo()
460 cantFail(SymbolDeserializer::deserializeAs<RegRelativeSym>(sym, reg)); in GetVariableNameInfo()
466 if (sym.kind() == S_REGISTER) { in GetVariableNameInfo()
468 cantFail(SymbolDeserializer::deserializeAs<RegisterSym>(sym, reg)); in GetVariableNameInfo()
474 if (sym.kind() == S_LOCAL) { in GetVariableNameInfo()
476 cantFail(SymbolDeserializer::deserializeAs<LocalSym>(sym, local)); in GetVariableNameInfo()
482 if (sym.kind() == S_GDATA32 || sym.kind() == S_LDATA32) { in GetVariableNameInfo()
484 cantFail(SymbolDeserializer::deserializeAs<DataSym>(sym, data)); in GetVariableNameInfo()
490 if (sym.kind() == S_GTHREAD32 || sym.kind() == S_LTHREAD32) { in GetVariableNameInfo()
492 cantFail(SymbolDeserializer::deserializeAs<ThreadLocalDataSym>(sym, data)); in GetVariableNameInfo()
498 if (sym.kind() == S_CONSTANT) { in GetVariableNameInfo()
500 cantFail(SymbolDeserializer::deserializeAs<ConstantSym>(sym, constant)); in GetVariableNameInfo()
513 CVSymbol sym = index.ReadSymbolRecord(var_id); in GetVariableLocationInfo() local
515 VariableInfo result = GetVariableNameInfo(sym); in GetVariableLocationInfo()
517 if (sym.kind() == S_REGREL32) { in GetVariableLocationInfo()
519 cantFail(SymbolDeserializer::deserializeAs<RegRelativeSym>(sym, reg)); in GetVariableLocationInfo()
526 if (sym.kind() == S_REGISTER) { in GetVariableLocationInfo()
528 cantFail(SymbolDeserializer::deserializeAs<RegisterSym>(sym, reg)); in GetVariableLocationInfo()
534 if (sym.kind() == S_LOCAL) { in GetVariableLocationInfo()
536 cantFail(SymbolDeserializer::deserializeAs<LocalSym>(sym, local)); in GetVariableLocationInfo()
539 var_id.offset + sym.RecordData.size()); in GetVariableLocationInfo()