LLVM 20.0.0git
|
#include "llvm/DebugInfo/CodeView/SymbolSerializer.h"
Public Member Functions | |
SymbolSerializer (BumpPtrAllocator &Storage, CodeViewContainer Container) | |
Error | visitSymbolBegin (CVSymbol &Record) override |
Error | visitSymbolEnd (CVSymbol &Record) override |
Public Member Functions inherited from llvm::codeview::SymbolVisitorCallbacks | |
virtual | ~SymbolVisitorCallbacks ()=default |
virtual Error | visitUnknownSymbol (CVSymbol &Record) |
Action to take on unknown symbols. By default, they are ignored. | |
virtual Error | visitSymbolBegin (CVSymbol &Record, uint32_t Offset) |
Paired begin/end actions for all symbols. | |
virtual Error | visitSymbolBegin (CVSymbol &Record) |
virtual Error | visitSymbolEnd (CVSymbol &Record) |
Static Public Member Functions | |
template<typename SymType > | |
static CVSymbol | writeOneSymbol (SymType &Sym, BumpPtrAllocator &Storage, CodeViewContainer Container) |
Definition at line 28 of file SymbolSerializer.h.
SymbolSerializer::SymbolSerializer | ( | BumpPtrAllocator & | Storage, |
CodeViewContainer | Container | ||
) |
Definition at line 20 of file SymbolSerializer.cpp.
References Allocator.
Reimplemented from llvm::codeview::SymbolVisitorCallbacks.
Definition at line 25 of file SymbolSerializer.cpp.
References assert(), llvm::codeview::EC, llvm::BinaryStreamWriter::setOffset(), llvm::Error::success(), and llvm::codeview::SymbolRecordMapping::visitSymbolBegin().
Referenced by writeOneSymbol().
Reimplemented from llvm::codeview::SymbolVisitorCallbacks.
Definition at line 40 of file SymbolSerializer.cpp.
References llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold, GrowthDelay >::Allocate(), assert(), llvm::codeview::EC, llvm::BinaryStreamWriter::getOffset(), llvm::Length, llvm::BinaryStreamWriter::setOffset(), llvm::Error::success(), llvm::codeview::SymbolRecordMapping::visitSymbolEnd(), and llvm::BinaryStreamWriter::writeInteger().
Referenced by writeOneSymbol().
|
inlinestatic |
Definition at line 52 of file SymbolSerializer.h.
References llvm::consumeError(), Sym, visitSymbolBegin(), and visitSymbolEnd().
Referenced by llvm::CodeViewYAML::detail::SymbolRecordImpl< T >::toCodeViewSymbol().