LLVM 20.0.0git
|
#include "llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h"
Definition at line 40 of file DbiStreamBuilder.h.
DbiStreamBuilder::DbiStreamBuilder | ( | msf::MSFBuilder & | Msf | ) |
Definition at line 28 of file DbiStreamBuilder.cpp.
References Allocator.
|
default |
|
delete |
Error DbiStreamBuilder::addDbgStream | ( | pdb::DbgHeaderType | Type, |
ArrayRef< uint8_t > | Data | ||
) |
Definition at line 85 of file DbiStreamBuilder.cpp.
References assert(), llvm::pdb::Data, llvm::pdb::NewFPO, Size, llvm::Error::success(), and llvm::BinaryStreamWriter::writeArray().
Definition at line 98 of file DbiStreamBuilder.cpp.
References llvm::pdb::PDBStringTableBuilder::insert(), and Name.
Expected< DbiModuleDescriptorBuilder & > DbiStreamBuilder::addModuleInfo | ( | StringRef | ModuleName | ) |
Definition at line 111 of file DbiStreamBuilder.cpp.
Error DbiStreamBuilder::addModuleSourceFile | ( | DbiModuleDescriptorBuilder & | Module, |
StringRef | File | ||
) |
Definition at line 118 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 74 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::addOldFpoData | ( | const object::FpoData & | Fpo | ) |
Definition at line 81 of file DbiStreamBuilder.cpp.
|
inline |
Definition at line 79 of file DbiStreamBuilder.h.
uint32_t DbiStreamBuilder::calculateSerializedLength | ( | ) | const |
Definition at line 102 of file DbiStreamBuilder.cpp.
References llvm::pdb::PDBStringTableBuilder::calculateSerializedSize().
Referenced by finalizeMsfLayout().
Error DbiStreamBuilder::commit | ( | const msf::MSFLayout & | Layout, |
WritableBinaryStreamRef | MsfBuffer | ||
) |
Definition at line 383 of file DbiStreamBuilder.cpp.
References assert(), llvm::BinaryStreamWriter::bytesRemaining(), llvm::pdb::PDBStringTableBuilder::commit(), llvm::msf::WritableMappedBlockStream::createIndexedStream(), llvm::pdb::DbiSecContribVer60, llvm::codeview::EC, llvm::pdb::invalid_format, llvm::pdb::kInvalidStreamIndex, llvm::parallelForEachError(), Size, llvm::pdb::StreamDBI, llvm::Error::success(), llvm::BinaryStreamWriter::writeArray(), llvm::BinaryStreamWriter::writeEnum(), llvm::BinaryStreamWriter::writeInteger(), llvm::BinaryStreamWriter::writeObject(), and llvm::BinaryStreamWriter::writeStreamRef().
void DbiStreamBuilder::createSectionMap | ( | ArrayRef< llvm::object::coff_section > | SecHdrs | ) |
Definition at line 351 of file DbiStreamBuilder.cpp.
References llvm::Add, llvm::pdb::AddressIs32Bit, Idx, llvm::pdb::IsAbsoluteAddress, and toSecMapFlags().
Error DbiStreamBuilder::finalizeMsfLayout | ( | ) |
Definition at line 288 of file DbiStreamBuilder.cpp.
References llvm::msf::MSFBuilder::addStream(), calculateSerializedLength(), llvm::codeview::EC, llvm::pdb::FPO, llvm::Length, MI, llvm::pdb::NewFPO, llvm::msf::MSFBuilder::setStreamSize(), Size, llvm::pdb::StreamDBI, llvm::Error::success(), and llvm::BinaryStreamWriter::writeArray().
Definition at line 126 of file DbiStreamBuilder.cpp.
References llvm::StringMap< ValueTy, AllocatorTy >::end(), llvm::StringMap< ValueTy, AllocatorTy >::find(), and llvm::pdb::no_entry.
|
delete |
void DbiStreamBuilder::setAge | ( | uint32_t | A | ) |
Definition at line 37 of file DbiStreamBuilder.cpp.
References A.
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 62 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setMachineType | ( | COFF::MachineTypes | M | ) |
Definition at line 57 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setMachineType | ( | PDB_Machine | M | ) |
Definition at line 55 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 70 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setSymbolRecordStreamIndex | ( | uint32_t | Index | ) |
Definition at line 66 of file DbiStreamBuilder.cpp.
void DbiStreamBuilder::setVersionHeader | ( | PdbRaw_DbiVer | V | ) |
Definition at line 35 of file DbiStreamBuilder.cpp.