LLVM
8.0.1
|
#include "llvm/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.h"
Friends | |
class | DbiStreamBuilder |
Definition at line 38 of file DbiModuleDescriptorBuilder.h.
DbiModuleDescriptorBuilder::DbiModuleDescriptorBuilder | ( | StringRef | ModuleName, |
uint32_t | ModIndex, | ||
msf::MSFBuilder & | Msf | ||
) |
Definition at line 40 of file DbiModuleDescriptorBuilder.cpp.
References llvm::Intrinsic::memset, and llvm::pdb::ModuleInfoHeader::Mod.
DbiModuleDescriptorBuilder::~DbiModuleDescriptorBuilder | ( | ) |
Definition at line 48 of file DbiModuleDescriptorBuilder.cpp.
|
delete |
void llvm::pdb::DbiModuleDescriptorBuilder::addDebugSubsection | ( | std::shared_ptr< codeview::DebugSubsection > | Subsection | ) |
Referenced by commit().
void DbiModuleDescriptorBuilder::addDebugSubsection | ( | const codeview::DebugSubsectionRecord & | SubsectionContents | ) |
Definition at line 186 of file DbiModuleDescriptorBuilder.cpp.
void DbiModuleDescriptorBuilder::addSymbol | ( | codeview::CVSymbol | Symbol | ) |
Definition at line 67 of file DbiModuleDescriptorBuilder.cpp.
References addSymbolsInBulk(), and llvm::codeview::CVRecord< Kind >::data().
void DbiModuleDescriptorBuilder::addSymbolsInBulk | ( | ArrayRef< uint8_t > | BulkSymbols | ) |
Definition at line 72 of file DbiModuleDescriptorBuilder.cpp.
References llvm::codeview::alignOf(), assert(), llvm::ArrayRef< T >::empty(), and llvm::ArrayRef< T >::size().
Referenced by addSymbol().
uint32_t DbiModuleDescriptorBuilder::calculateSerializedLength | ( | ) | const |
Definition at line 99 of file DbiModuleDescriptorBuilder.cpp.
References llvm::alignTo(), and llvm::RISCVFenceField::O.
Error DbiModuleDescriptorBuilder::commit | ( | BinaryStreamWriter & | ModiWriter, |
const msf::MSFLayout & | MsfLayout, | ||
WritableBinaryStreamRef | MsfBuffer | ||
) |
Definition at line 134 of file DbiModuleDescriptorBuilder.cpp.
References addDebugSubsection(), llvm::codeview::alignOf(), assert(), llvm::BinaryStreamWriter::bytesRemaining(), llvm::COFF::DEBUG_SECTION_MAGIC, llvm::codeview::EC, llvm::msf::MSFBuilder::getAllocator(), llvm::BinaryStreamWriter::getOffset(), llvm::pdb::kInvalidStreamIndex, llvm::pdb::ModuleInfoHeader::ModDiStream, llvm::BinaryStreamWriter::padToAlignment(), llvm::Ref, llvm::pdb::stream_too_long, llvm::Error::success(), llvm::BinaryStreamWriter::writeBytes(), llvm::BinaryStreamWriter::writeCString(), llvm::BinaryStreamWriter::writeInteger(), and llvm::BinaryStreamWriter::writeObject().
void DbiModuleDescriptorBuilder::finalize | ( | ) |
Definition at line 106 of file DbiModuleDescriptorBuilder.cpp.
References llvm::pdb::ModuleInfoHeader::C11Bytes, llvm::pdb::ModuleInfoHeader::C13Bytes, llvm::pdb::ModuleInfoHeader::FileNameOffs, llvm::pdb::ModuleInfoHeader::Flags, llvm::pdb::SectionContrib::Imod, llvm::pdb::ModuleInfoHeader::Mod, llvm::pdb::ModuleInfoHeader::ModDiStream, llvm::pdb::ModuleInfoHeader::NumFiles, llvm::pdb::ModuleInfoHeader::PdbFilePathNI, llvm::pdb::ModuleInfoHeader::SC, llvm::pdb::ModuleInfoHeader::SrcFileNameNI, and llvm::pdb::ModuleInfoHeader::SymBytes.
Error DbiModuleDescriptorBuilder::finalizeMsfLayout | ( | ) |
Definition at line 123 of file DbiModuleDescriptorBuilder.cpp.
References llvm::msf::MSFBuilder::addStream(), calculateDiSymbolStreamSize(), llvm::pdb::kInvalidStreamIndex, llvm::pdb::ModuleInfoHeader::ModDiStream, and llvm::Error::success().
|
inline |
Definition at line 66 of file DbiModuleDescriptorBuilder.h.
|
inline |
Definition at line 63 of file DbiModuleDescriptorBuilder.h.
|
inline |
Return the offset within the module symbol stream of the next symbol record passed to addSymbol.
Add four to account for the signature.
Definition at line 76 of file DbiModuleDescriptorBuilder.h.
References finalize, llvm::pdb::SourceFiles, and llvm::codeview::Symbols.
|
inline |
Definition at line 64 of file DbiModuleDescriptorBuilder.h.
uint16_t DbiModuleDescriptorBuilder::getStreamIndex | ( | ) | const |
Definition at line 50 of file DbiModuleDescriptorBuilder.cpp.
References llvm::pdb::ModuleInfoHeader::ModDiStream.
|
delete |
void DbiModuleDescriptorBuilder::setFirstSectionContrib | ( | const SectionContrib & | SC | ) |
Definition at line 62 of file DbiModuleDescriptorBuilder.cpp.
References llvm::pdb::ModuleInfoHeader::SC, and llvm::PPCISD::SC.
void DbiModuleDescriptorBuilder::setObjFileName | ( | StringRef | Name | ) |
Definition at line 54 of file DbiModuleDescriptorBuilder.cpp.
References Name.
void DbiModuleDescriptorBuilder::setPdbFilePathNI | ( | uint32_t | NI | ) |
Definition at line 58 of file DbiModuleDescriptorBuilder.cpp.
|
inline |
Definition at line 68 of file DbiModuleDescriptorBuilder.h.
References llvm::makeArrayRef(), and llvm::pdb::SourceFiles.
|
friend |
Definition at line 39 of file DbiModuleDescriptorBuilder.h.