Go to the documentation of this file.
9 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_PDBFILE_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_PDBFILE_H
26 class MappedBlockStream;
33 class InjectedSourceStream;
85 std::unique_ptr<msf::MappedBlockStream>
123 std::string FilePath;
126 std::unique_ptr<BinaryStream> Buffer;
130 std::unique_ptr<GlobalsStream> Globals;
131 std::unique_ptr<InfoStream> Info;
132 std::unique_ptr<DbiStream> Dbi;
133 std::unique_ptr<TpiStream> Tpi;
134 std::unique_ptr<TpiStream> Ipi;
135 std::unique_ptr<PublicsStream> Publics;
136 std::unique_ptr<SymbolStream> Symbols;
137 std::unique_ptr<msf::MappedBlockStream> DirectoryStream;
138 std::unique_ptr<msf::MappedBlockStream> StringTableStream;
139 std::unique_ptr<InjectedSourceStream> InjectedSources;
140 std::unique_ptr<PDBStringTable> Strings;
bool hasPDBIpiStream() const
This is an optimization pass for GlobalISel generic memory operations.
uint32_t getFreeBlockMapBlock() const
uint32_t getNumDirectoryBytes() const
StringRef getFilePath() const
BumpPtrAllocator & getAllocator()
uint32_t getBlockMapIndex() const
bool hasPDBSymbolStream()
bool hasPDBGlobalsStream()
uint32_t getStreamByteSize(uint32_t StreamIndex) const override
Tagged union holding either a T or a Error.
Expected< SymbolStream & > getPDBSymbolStream()
PDBFile(StringRef Path, std::unique_ptr< BinaryStream > PdbFileBuffer, BumpPtrAllocator &Allocator)
uint32_t getBlockCount() const override
ArrayRef< support::ulittle32_t > getStreamSizes() const
StringRef getFileDirectory() const
Expected< TpiStream & > getPDBIpiStream()
ArrayRef< support::ulittle32_t > getDirectoryBlockArray() const
bool hasPDBTpiStream() const
msf::MSFStreamLayout getStreamLayout(uint32_t StreamIdx) const
Expected< std::unique_ptr< msf::MappedBlockStream > > safelyCreateIndexedStream(uint32_t StreamIndex) const
Wrapper around MappedBlockStream::createIndexedStream() that checks if a stream with that index actua...
Expected< DbiStream & > getPDBDbiStream()
ArrayRef< ArrayRef< support::ulittle32_t > > getStreamMap() const
ArrayRef< support::ulittle32_t > StreamSizes
uint32_t getNumStreams() const override
Expected< std::unique_ptr< msf::MappedBlockStream > > safelyCreateNamedStream(StringRef Name)
msf::MSFStreamLayout getFpmStreamLayout() const
Allocate memory in an ever growing pool, as if by bump-pointer.
uint64_t getFileSize() const
uint32_t getBlockSize() const override
Error setBlockData(uint32_t BlockIndex, uint32_t Offset, ArrayRef< uint8_t > Data) const override
Expected< InjectedSourceStream & > getInjectedSourceStream()
Expected< InfoStream & > getPDBInfoStream()
BinaryStreamRef getMsfBuffer() const
bool hasPDBDbiStream() const
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
StringRef - Represent a constant reference to a string, i.e.
bool hasPDBInjectedSourceStream()
Expected< PDBStringTable & > getStringTable()
uint32_t getUnknown1() const
ArrayRef< support::ulittle32_t > getStreamBlockList(uint32_t StreamIndex) const override
Expected< TpiStream & > getPDBTpiStream()
Lightweight error class with error context and mandatory checking.
std::vector< ArrayRef< support::ulittle32_t > > StreamMap
Expected< ArrayRef< uint8_t > > getBlockData(uint32_t BlockIndex, uint32_t NumBytes) const override
uint32_t getMaxStreamSize() const
const msf::MSFLayout & getMsfLayout() const
bool hasPDBPublicsStream()
Expected< PublicsStream & > getPDBPublicsStream()
uint32_t getPointerSize()
bool hasPDBInfoStream() const
std::unique_ptr< msf::MappedBlockStream > createIndexedStream(uint16_t SN) const
uint32_t getNumDirectoryBlocks() const
Expected< GlobalsStream & > getPDBGlobalsStream()
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
uint64_t getBlockMapOffset() const
Describes the layout of a stream in an MSF layout.