LLVM
8.0.1
|
#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. More... | |
virtual Error | visitSymbolBegin (CVSymbol &Record, uint32_t Offset) |
Paired begin/end actions for all symbols. More... | |
Static Public Member Functions | |
template<typename SymType > | |
static CVSymbol | writeOneSymbol (SymType &Sym, BumpPtrAllocator &Storage, CodeViewContainer Container) |
Definition at line 29 of file SymbolSerializer.h.
SymbolSerializer::SymbolSerializer | ( | BumpPtrAllocator & | Storage, |
CodeViewContainer | Container | ||
) |
Definition at line 22 of file SymbolSerializer.cpp.
Reimplemented from llvm::codeview::SymbolVisitorCallbacks.
Definition at line 27 of file SymbolSerializer.cpp.
References assert(), llvm::codeview::EC, llvm::Optional< T >::hasValue(), llvm::codeview::CVRecord< Kind >::kind(), llvm::BinaryStreamWriter::setOffset(), llvm::Error::success(), and llvm::codeview::SymbolRecordMapping::visitSymbolBegin().
Referenced by writeOneSymbol().
Reimplemented from llvm::codeview::SymbolVisitorCallbacks.
Definition at line 42 of file SymbolSerializer.cpp.
References llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate(), assert(), llvm::codeview::EC, llvm::BinaryStreamWriter::getOffset(), llvm::Optional< T >::hasValue(), llvm::Intrinsic::memcpy, llvm::codeview::CVRecord< Kind >::RecordData, llvm::Optional< T >::reset(), llvm::BinaryStreamWriter::setOffset(), llvm::Error::success(), llvm::codeview::SymbolRecordMapping::visitSymbolEnd(), and llvm::BinaryStreamWriter::writeInteger().
Referenced by writeOneSymbol().
|
inlinestatic |
Definition at line 53 of file SymbolSerializer.h.
References llvm::consumeError(), llvm::codeview::CVRecord< Kind >::Type, visitSymbolBegin(), and visitSymbolEnd().
Referenced by llvm::CodeViewYAML::detail::SymbolRecordImpl< T >::toCodeViewSymbol().