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: {
35 case SymbolKind::S_BLOCK32: {
39 case SymbolKind::S_THUNK32: {
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: {
66 case SymbolKind::S_BLOCK32: {
70 case SymbolKind::S_THUNK32: {
74 case SymbolKind::S_INLINESITE: {
79 assert(
false &&
"Unknown record type");
92 return Symbols.substream(ScopeBegin, EndOffset);
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static RecordT createRecord(const CVSymbol &sym)
size_t size() const
size - Get the array size.
ArrayRef< uint8_t > RecordData
static Error deserializeAs(CVSymbol Symbol, T &Record)
VarStreamArray< CVSymbol > CVSymbolArray
CVRecord< SymbolKind > CVSymbol
SymbolRecordKind
Distinguishes individual records in the Symbols subsection of a .debug$S section.
LLVM_ABI uint32_t getScopeEndOffset(const CVSymbol &Symbol)
Given a symbol P for which symbolOpensScope(P) == true, return the corresponding end offset.
LLVM_ABI uint32_t getScopeParentOffset(const CVSymbol &Symbol)
bool symbolOpensScope(SymbolKind Kind)
Return true if this symbol opens a scope.
LLVM_ABI CVSymbolArray limitSymbolArrayToScope(const CVSymbolArray &Symbols, uint32_t ScopeBegin)
This is an optimization pass for GlobalISel generic memory operations.
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.