19 RecordT record(static_cast<SymbolRecordKind>(sym.
kind()));
20 cantFail(SymbolDeserializer::deserializeAs<RecordT>(sym, record));
27 case SymbolKind::S_GPROC32:
28 case SymbolKind::S_LPROC32:
29 case SymbolKind::S_GPROC32_ID:
30 case SymbolKind::S_LPROC32_ID:
31 case SymbolKind::S_LPROC32_DPC:
32 case SymbolKind::S_LPROC32_DPC_ID: {
33 ProcSym Proc = createRecord<ProcSym>(Sym);
36 case SymbolKind::S_BLOCK32: {
37 BlockSym Block = createRecord<BlockSym>(Sym);
40 case SymbolKind::S_THUNK32: {
41 Thunk32Sym Thunk = createRecord<Thunk32Sym>(Sym);
44 case SymbolKind::S_INLINESITE: {
49 assert(
false &&
"Unknown record type");
58 case SymbolKind::S_GPROC32:
59 case SymbolKind::S_LPROC32:
60 case SymbolKind::S_GPROC32_ID:
61 case SymbolKind::S_LPROC32_ID:
62 case SymbolKind::S_LPROC32_DPC:
63 case SymbolKind::S_LPROC32_DPC_ID: {
64 ProcSym Proc = createRecord<ProcSym>(Sym);
67 case SymbolKind::S_BLOCK32: {
68 BlockSym Block = createRecord<BlockSym>(Sym);
71 case SymbolKind::S_THUNK32: {
72 Thunk32Sym Thunk = createRecord<Thunk32Sym>(Sym);
75 case SymbolKind::S_INLINESITE: {
80 assert(
false &&
"Unknown record type");
93 return Symbols.
substream(ScopeBegin, EndOffset);
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
This class represents lattice values for constants.
uint32_t getScopeEndOffset(const CVSymbol &Symbol)
Given a symbol P for which symbolOpensScope(P) == true, return the corresponding end offset...
VarStreamArray< ValueType, Extractor > substream(uint32_t Begin, uint32_t End) const
bool symbolOpensScope(SymbolKind Kind)
Return true if this symbol opens a scope.
size_t size() const
size - Get the array size.
uint32_t getScopeParentOffset(const CVSymbol &Symbol)
RecordT createRecord(const CVSymbol &sym)
CVSymbolArray limitSymbolArrayToScope(const CVSymbolArray &Symbols, uint32_t ScopeBegin)
ArrayRef< uint8_t > RecordData
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Iterator at(uint32_t Offset) const
given an offset into the array's underlying stream, return an iterator to the record at that offset...