LLVM
8.0.1
|
#include "llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h"
Static Public Member Functions | |
static std::vector< SecMapEntry > | createSectionMap (ArrayRef< llvm::object::coff_section > SecHdrs) |
Definition at line 44 of file DbiStreamBuilder.h.
DbiStreamBuilder::DbiStreamBuilder | ( | msf::MSFBuilder & | Msf | ) |
Definition at line 28 of file DbiStreamBuilder.cpp.
References llvm::pdb::x86.
DbiStreamBuilder::~DbiStreamBuilder | ( | ) |
Definition at line 33 of file DbiStreamBuilder.cpp.
|
delete |
Error DbiStreamBuilder::addDbgStream | ( | pdb::DbgHeaderType | Type, |
ArrayRef< uint8_t > | Data | ||
) |
Definition at line 89 of file DbiStreamBuilder.cpp.
References assert(), llvm::pdb::NewFPO, Size, llvm::ArrayRef< T >::size(), llvm::Error::success(), and llvm::BinaryStreamWriter::writeArray().
Definition at line 102 of file DbiStreamBuilder.cpp.
References llvm::pdb::PDBStringTableBuilder::insert().
Expected< DbiModuleDescriptorBuilder & > DbiStreamBuilder::addModuleInfo | ( | StringRef | ModuleName | ) |
Definition at line 115 of file DbiStreamBuilder.cpp.
Error DbiStreamBuilder::addModuleSourceFile | ( | DbiModuleDescriptorBuilder & | Module, |
StringRef | File | ||
) |
Definition at line 122 of file DbiStreamBuilder.cpp.
References llvm::StringMap< ValueTy, AllocatorTy >::insert(), llvm::StringMapImpl::size(), and llvm::Error::success().
void DbiStreamBuilder::addNewFpoData | ( | const codeview::FrameData & | FD | ) |
Definition at line 78 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::addOldFpoData | ( | const object::FpoData & | Fpo | ) |
Definition at line 85 of file DbiStreamBuilder.cpp.
|
inline |
Definition at line 84 of file DbiStreamBuilder.h.
References Allocator, finalize, llvm::pdb::kInvalidStreamIndex, llvm::pdb::SectionContribs, and Size.
uint32_t DbiStreamBuilder::calculateSerializedLength | ( | ) | const |
Definition at line 106 of file DbiStreamBuilder.cpp.
References llvm::pdb::PDBStringTableBuilder::calculateSerializedSize().
Referenced by finalizeMsfLayout().
Error DbiStreamBuilder::commit | ( | const msf::MSFLayout & | Layout, |
WritableBinaryStreamRef | MsfBuffer | ||
) |
Definition at line 392 of file DbiStreamBuilder.cpp.
References assert(), llvm::BinaryStreamWriter::bytesRemaining(), llvm::pdb::PDBStringTableBuilder::commit(), llvm::pdb::DbiSecContribVer60, llvm::codeview::EC, if(), llvm::pdb::invalid_format, llvm::pdb::kInvalidStreamIndex, llvm::makeArrayRef(), Size, llvm::pdb::StreamDBI, llvm::Error::success(), llvm::BinaryStreamWriter::writeArray(), llvm::BinaryStreamWriter::writeEnum(), llvm::BinaryStreamWriter::writeInteger(), llvm::BinaryStreamWriter::writeObject(), and llvm::BinaryStreamWriter::writeStreamRef().
|
static |
Definition at line 357 of file DbiStreamBuilder.cpp.
References llvm::MCID::Add, llvm::pdb::AddressIs32Bit, llvm::pdb::IsAbsoluteAddress, llvm::Intrinsic::memset, llvm::MipsISD::Ret, and toSecMapFlags().
Error DbiStreamBuilder::finalizeMsfLayout | ( | ) |
Definition at line 292 of file DbiStreamBuilder.cpp.
References llvm::msf::MSFBuilder::addStream(), calculateSerializedLength(), llvm::codeview::EC, llvm::pdb::FPO, llvm::makeArrayRef(), MI, llvm::pdb::NewFPO, llvm::msf::MSFBuilder::setStreamSize(), Size, llvm::pdb::StreamDBI, llvm::Error::success(), and llvm::BinaryStreamWriter::writeArray().
Definition at line 130 of file DbiStreamBuilder.cpp.
References llvm::pdb::DbiStreamHeader::Age, llvm::alignTo(), llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate(), llvm::pdb::DbiStreamHeader::BuildNumber, llvm::BinaryStreamWriter::bytesRemaining(), llvm::pdb::PDBStringTableBuilder::calculateSerializedSize(), llvm::pdb::Data, llvm::BinaryStreamRefBase< RefType, StreamType >::drop_front(), llvm::codeview::EC, llvm::pdb::DbiStreamHeader::ECSubstreamSize, llvm::StringMap< ValueTy, AllocatorTy >::end(), F(), llvm::pdb::DbiStreamHeader::FileInfoSize, llvm::StringMap< ValueTy, AllocatorTy >::find(), llvm::pdb::DbiStreamHeader::Flags, llvm::MutableBinaryByteStream::getLength(), llvm::BinaryStreamWriter::getOffset(), llvm::pdb::DbiStreamHeader::GlobalSymbolStreamIndex, H, I, llvm::pdb::invalid_format, llvm::BinaryStreamRefBase< RefType, StreamType >::keep_front(), llvm::support::little, llvm::pdb::DbiStreamHeader::MachineType, llvm::Intrinsic::memset, llvm::pdb::DbiStreamHeader::MFCTypeServerIndex, MI, llvm::pdb::DbiStreamHeader::ModiSubstreamSize, Name, llvm::pdb::no_entry, llvm::pdb::DbiStreamHeader::OptionalDbgHdrSize, llvm::BinaryStreamWriter::padToAlignment(), llvm::pdb::DbiStreamHeader::PdbDllRbld, llvm::pdb::DbiStreamHeader::PdbDllVersion, llvm::pdb::DbiStreamHeader::PublicSymbolStreamIndex, llvm::pdb::DbiStreamHeader::SecContrSubstreamSize, llvm::pdb::DbiStreamHeader::SectionMapSize, Size, llvm::StringMapImpl::size(), llvm::Error::success(), llvm::pdb::DbiStreamHeader::SymRecordStreamIndex, llvm::pdb::DbiStreamHeader::TypeServerSize, llvm::pdb::DbiStreamHeader::VersionHeader, llvm::pdb::DbiStreamHeader::VersionSignature, llvm::BinaryStreamWriter::writeCString(), and llvm::BinaryStreamWriter::writeInteger().
|
delete |
void DbiStreamBuilder::setAge | ( | uint32_t | A | ) |
Definition at line 37 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setBuildNumber | ( | uint16_t | B | ) |
Definition at line 39 of file DbiStreamBuilder.cpp.
References B.
void DbiStreamBuilder::setBuildNumber | ( | uint8_t | Major, |
uint8_t | Minor | ||
) |
Definition at line 41 of file DbiStreamBuilder.cpp.
References llvm::pdb::DbiBuildNo::BuildMajorMask, llvm::pdb::DbiBuildNo::BuildMajorShift, llvm::pdb::DbiBuildNo::BuildMinorMask, llvm::pdb::DbiBuildNo::BuildMinorShift, and llvm::pdb::DbiBuildNo::NewVersionFormatMask.
void DbiStreamBuilder::setFlags | ( | uint16_t | F | ) |
Definition at line 53 of file DbiStreamBuilder.cpp.
References F().
void DbiStreamBuilder::setGlobalsStreamIndex | ( | uint32_t | Index | ) |
Definition at line 66 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setMachineType | ( | PDB_Machine | M | ) |
Definition at line 55 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setMachineType | ( | COFF::MachineTypes | M | ) |
Definition at line 57 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setPdbDllRbld | ( | uint16_t | R | ) |
Definition at line 51 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setPdbDllVersion | ( | uint16_t | V | ) |
Definition at line 49 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setPublicsStreamIndex | ( | uint32_t | Index | ) |
Definition at line 74 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setSectionMap | ( | ArrayRef< SecMapEntry > | SecMap | ) |
Definition at line 62 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setSymbolRecordStreamIndex | ( | uint32_t | Index | ) |
Definition at line 70 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setVersionHeader | ( | PdbRaw_DbiVer | V | ) |
Definition at line 35 of file DbiStreamBuilder.cpp.