LLVM 20.0.0git
|
#include "llvm/DebugInfo/PDB/Native/PDBFileBuilder.h"
Public Member Functions | |
PDBFileBuilder (BumpPtrAllocator &Allocator) | |
~PDBFileBuilder () | |
PDBFileBuilder (const PDBFileBuilder &)=delete | |
PDBFileBuilder & | operator= (const PDBFileBuilder &)=delete |
Error | initialize (uint32_t BlockSize) |
msf::MSFBuilder & | getMsfBuilder () |
InfoStreamBuilder & | getInfoBuilder () |
DbiStreamBuilder & | getDbiBuilder () |
TpiStreamBuilder & | getTpiBuilder () |
TpiStreamBuilder & | getIpiBuilder () |
PDBStringTableBuilder & | getStringTableBuilder () |
GSIStreamBuilder & | getGsiBuilder () |
Error | commit (StringRef Filename, codeview::GUID *Guid) |
Expected< uint32_t > | getNamedStreamIndex (StringRef Name) const |
Error | addNamedStream (StringRef Name, StringRef Data) |
void | addInjectedSource (StringRef Name, std::unique_ptr< MemoryBuffer > Buffer) |
Definition at line 39 of file PDBFileBuilder.h.
|
explicit |
Definition at line 43 of file PDBFileBuilder.cpp.
References Allocator.
|
default |
|
delete |
void PDBFileBuilder::addInjectedSource | ( | StringRef | Name, |
std::unique_ptr< MemoryBuffer > | Buffer | ||
) |
Definition at line 110 of file PDBFileBuilder.cpp.
References getStringTableBuilder(), llvm::pdb::InjectedSources, llvm::pdb::PDBStringTableBuilder::insert(), Name, llvm::sys::path::native, and llvm::sys::path::windows_backslash.
Definition at line 101 of file PDBFileBuilder.cpp.
References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::count(), llvm::pdb::Data, Name, llvm::Error::success(), and llvm::Expected< T >::takeError().
Error PDBFileBuilder::commit | ( | StringRef | Filename, |
codeview::GUID * | Guid | ||
) |
Definition at line 274 of file PDBFileBuilder.cpp.
References Allocator, assert(), llvm::msf::SuperBlock::BlockSize, llvm::msf::blockToOffset(), llvm::FileBufferByteStream::commit(), llvm::pdb::PDBStringTableBuilder::commit(), llvm::msf::WritableMappedBlockStream::createIndexedStream(), llvm::codeview::EC, llvm::FileBufferByteStream::getBufferEnd(), llvm::FileBufferByteStream::getBufferStart(), getNamedStreamIndex(), llvm::Guid, H, Info, llvm::msf::MSFLayout::SB, llvm::msf::MSFLayout::StreamMap, llvm::pdb::StreamPDB, llvm::Expected< T >::takeError(), llvm::BinaryStreamWriter::writeBytes(), and llvm::xxh3_64bits().
DbiStreamBuilder & PDBFileBuilder::getDbiBuilder | ( | ) |
Definition at line 65 of file PDBFileBuilder.cpp.
GSIStreamBuilder & PDBFileBuilder::getGsiBuilder | ( | ) |
Definition at line 87 of file PDBFileBuilder.cpp.
InfoStreamBuilder & PDBFileBuilder::getInfoBuilder | ( | ) |
Definition at line 59 of file PDBFileBuilder.cpp.
References Info.
TpiStreamBuilder & PDBFileBuilder::getIpiBuilder | ( | ) |
Definition at line 77 of file PDBFileBuilder.cpp.
References llvm::pdb::StreamIPI.
MSFBuilder & PDBFileBuilder::getMsfBuilder | ( | ) |
Definition at line 57 of file PDBFileBuilder.cpp.
Definition at line 227 of file PDBFileBuilder.cpp.
References llvm::pdb::NamedStreamMap::get(), Name, and llvm::pdb::no_stream.
Referenced by commit().
PDBStringTableBuilder & PDBFileBuilder::getStringTableBuilder | ( | ) |
Definition at line 83 of file PDBFileBuilder.cpp.
Referenced by addInjectedSource().
TpiStreamBuilder & PDBFileBuilder::getTpiBuilder | ( | ) |
Definition at line 71 of file PDBFileBuilder.cpp.
References llvm::pdb::StreamTPI.
Definition at line 49 of file PDBFileBuilder.cpp.
References Allocator, BlockSize, llvm::msf::MSFBuilder::create(), and llvm::Error::success().
|
delete |
References Content.