LLVM 20.0.0git
|
#include "llvm/DebugInfo/CodeView/DebugSubsectionRecord.h"
Public Member Functions | |
DebugSubsectionRecordBuilder (std::shared_ptr< DebugSubsection > Subsection) | |
DebugSubsectionRecordBuilder (const DebugSubsectionRecord &Contents) | |
Use this to copy existing subsections directly from source to destination. | |
uint32_t | calculateSerializedLength () const |
Error | commit (BinaryStreamWriter &Writer, CodeViewContainer Container) const |
Definition at line 51 of file DebugSubsectionRecord.h.
DebugSubsectionRecordBuilder::DebugSubsectionRecordBuilder | ( | std::shared_ptr< DebugSubsection > | Subsection | ) |
Definition at line 51 of file DebugSubsectionRecord.cpp.
DebugSubsectionRecordBuilder::DebugSubsectionRecordBuilder | ( | const DebugSubsectionRecord & | Contents | ) |
Use this to copy existing subsections directly from source to destination.
For example, line table subsections in an object file only need to be relocated before being copied into the PDB.
Definition at line 55 of file DebugSubsectionRecord.cpp.
uint32_t DebugSubsectionRecordBuilder::calculateSerializedLength | ( | ) | const |
Definition at line 59 of file DebugSubsectionRecord.cpp.
References llvm::alignTo(), llvm::BinaryStreamRefBase< RefType, StreamType >::getLength(), and llvm::codeview::DebugSubsectionRecord::getRecordData().
Error DebugSubsectionRecordBuilder::commit | ( | BinaryStreamWriter & | Writer, |
CodeViewContainer | Container | ||
) | const |
Definition at line 67 of file DebugSubsectionRecord.cpp.
References llvm::codeview::alignOf(), llvm::alignTo(), assert(), llvm::codeview::EC, llvm::BinaryStreamRefBase< RefType, StreamType >::getLength(), llvm::BinaryStreamWriter::getOffset(), llvm::codeview::DebugSubsectionRecord::getRecordData(), llvm::codeview::DebugSubsectionRecord::kind(), llvm::BinaryStreamWriter::padToAlignment(), llvm::Error::success(), llvm::BinaryStreamWriter::writeObject(), and llvm::BinaryStreamWriter::writeStreamRef().