LLVM
8.0.1
|
#include "llvm/DebugInfo/CodeView/DebugSubsectionRecord.h"
Public Member Functions | |
DebugSubsectionRecordBuilder (std::shared_ptr< DebugSubsection > Subsection, CodeViewContainer Container) | |
DebugSubsectionRecordBuilder (const DebugSubsectionRecord &Contents, CodeViewContainer Container) | |
Use this to copy existing subsections directly from source to destination. More... | |
uint32_t | calculateSerializedLength () |
Error | commit (BinaryStreamWriter &Writer) const |
Definition at line 55 of file DebugSubsectionRecord.h.
DebugSubsectionRecordBuilder::DebugSubsectionRecordBuilder | ( | std::shared_ptr< DebugSubsection > | Subsection, |
CodeViewContainer | Container | ||
) |
Definition at line 56 of file DebugSubsectionRecord.cpp.
DebugSubsectionRecordBuilder::DebugSubsectionRecordBuilder | ( | const DebugSubsectionRecord & | Contents, |
CodeViewContainer | Container | ||
) |
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 60 of file DebugSubsectionRecord.cpp.
uint32_t DebugSubsectionRecordBuilder::calculateSerializedLength | ( | ) |
Definition at line 64 of file DebugSubsectionRecord.cpp.
References llvm::alignTo(), llvm::BinaryStreamRefBase< RefType, StreamType >::getLength(), and llvm::codeview::DebugSubsectionRecord::getRecordData().
Error DebugSubsectionRecordBuilder::commit | ( | BinaryStreamWriter & | Writer | ) | const |
Definition at line 72 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::DebugSubsectionHeader::Kind, llvm::codeview::DebugSubsectionRecord::kind(), llvm::BinaryStreamWriter::padToAlignment(), llvm::Error::success(), llvm::BinaryStreamWriter::writeObject(), and llvm::BinaryStreamWriter::writeStreamRef().