18 RecordT record(static_cast<SymbolRecordKind>(sym.
kind()));
19 cantFail(SymbolDeserializer::deserializeAs<RecordT>(sym, record));
26 case SymbolKind::S_GPROC32:
27 case SymbolKind::S_LPROC32:
28 case SymbolKind::S_GPROC32_ID:
29 case SymbolKind::S_LPROC32_ID:
30 case SymbolKind::S_LPROC32_DPC:
31 case SymbolKind::S_LPROC32_DPC_ID: {
32 ProcSym Proc = createRecord<ProcSym>(Sym);
35 case SymbolKind::S_BLOCK32: {
36 BlockSym Block = createRecord<BlockSym>(Sym);
39 case SymbolKind::S_THUNK32: {
40 Thunk32Sym Thunk = createRecord<Thunk32Sym>(Sym);
43 case SymbolKind::S_INLINESITE: {
48 assert(
false &&
"Unknown record type");
57 case SymbolKind::S_GPROC32:
58 case SymbolKind::S_LPROC32:
59 case SymbolKind::S_GPROC32_ID:
60 case SymbolKind::S_LPROC32_ID:
61 case SymbolKind::S_LPROC32_DPC:
62 case SymbolKind::S_LPROC32_DPC_ID: {
63 ProcSym Proc = createRecord<ProcSym>(Sym);
66 case SymbolKind::S_BLOCK32: {
67 BlockSym Block = createRecord<BlockSym>(Sym);
70 case SymbolKind::S_THUNK32: {
71 Thunk32Sym Thunk = createRecord<Thunk32Sym>(Sym);
74 case SymbolKind::S_INLINESITE: {
79 assert(
false &&
"Unknown record type");
92 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)
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...
CVRecord is a fat pointer (base + size pair) to a symbol or type record.
static RecordT createRecord(const CVSymbol &sym)