LLVM 20.0.0git
|
#include "llvm/DebugInfo/PDB/Native/TpiStream.h"
Friends | |
class | TpiStreamBuilder |
Definition at line 34 of file TpiStream.h.
TpiStream::TpiStream | ( | PDBFile & | File, |
std::unique_ptr< msf::MappedBlockStream > | Stream | ||
) |
Definition at line 36 of file TpiStream.cpp.
|
default |
void TpiStream::buildHashMap | ( | ) |
Definition at line 144 of file TpiStream.cpp.
References llvm::FixedStreamArray< T >::empty(), llvm::pdb::TpiStreamHeader::NumHashBuckets, llvm::pdb::TpiStreamHeader::TypeIndexBegin, and llvm::pdb::TpiStreamHeader::TypeIndexEnd.
Referenced by findFullDeclForForwardRef(), and findRecordsByName().
Error TpiStream::commit | ( | ) |
Definition at line 246 of file TpiStream.cpp.
References llvm::Error::success().
Expected< TypeIndex > TpiStream::findFullDeclForForwardRef | ( | codeview::TypeIndex | ForwardRefTI | ) | const |
Definition at line 180 of file TpiStream.cpp.
References buildHashMap(), F, llvm::codeview::TagRecord::getName(), llvm::codeview::TagRecord::getUniqueName(), llvm::pdb::hashTagRecord(), llvm::codeview::TagRecord::hasUniqueName(), llvm::codeview::isUdtForwardRef(), llvm::codeview::CVRecord< Kind >::kind(), llvm::pdb::TpiStreamHeader::NumHashBuckets, supportsTypeLookup(), and llvm::Expected< T >::takeError().
Definition at line 160 of file TpiStream.cpp.
References buildHashMap(), llvm::codeview::computeTypeName(), llvm::pdb::hashStringV1(), Name, llvm::pdb::TpiStreamHeader::NumHashBuckets, and supportsTypeLookup().
HashTable< support::ulittle32_t > & TpiStream::getHashAdjusters | ( | ) |
Definition at line 238 of file TpiStream.cpp.
uint32_t TpiStream::getHashKeySize | ( | ) | const |
Definition at line 142 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::HashKeySize.
FixedStreamArray< support::ulittle32_t > TpiStream::getHashValues | ( | ) | const |
Definition at line 230 of file TpiStream.cpp.
uint32_t TpiStream::getNumHashBuckets | ( | ) | const |
Definition at line 141 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::NumHashBuckets.
uint32_t TpiStream::getNumTypeRecords | ( | ) | const |
Definition at line 129 of file TpiStream.cpp.
References TypeIndexBegin(), and TypeIndexEnd().
Referenced by reload().
PdbRaw_TpiVer TpiStream::getTpiVersion | ( | ) | const |
Definition at line 120 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::Version.
codeview::CVType TpiStream::getType | ( | codeview::TypeIndex | Index | ) |
Definition at line 221 of file TpiStream.cpp.
References assert().
uint16_t TpiStream::getTypeHashStreamAuxIndex | ( | ) | const |
Definition at line 137 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::HashAuxStreamIndex.
uint16_t TpiStream::getTypeHashStreamIndex | ( | ) | const |
Definition at line 133 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::HashStreamIndex.
FixedStreamArray< TypeIndexOffset > TpiStream::getTypeIndexOffsets | ( | ) | const |
Definition at line 234 of file TpiStream.cpp.
Referenced by reload().
BinarySubstreamRef TpiStream::getTypeRecordsSubstream | ( | ) | const |
Definition at line 226 of file TpiStream.cpp.
Error TpiStream::reload | ( | ) |
Definition at line 41 of file TpiStream.cpp.
References llvm::BinaryStreamReader::bytesRemaining(), llvm::consumeError(), llvm::pdb::corrupt_file, llvm::codeview::EC, getNumTypeRecords(), getTypeIndexOffsets(), llvm::pdb::TpiStreamHeader::HashAdjBuffer, llvm::pdb::TpiStreamHeader::HashKeySize, llvm::pdb::TpiStreamHeader::HashStreamIndex, llvm::pdb::TpiStreamHeader::HashValueBuffer, llvm::pdb::TpiStreamHeader::HeaderSize, llvm::pdb::TpiStreamHeader::IndexOffsetBuffer, llvm::pdb::kInvalidStreamIndex, llvm::pdb::TpiStreamHeader::EmbeddedBuf::Length, llvm::pdb::MaxTpiHashBuckets, llvm::pdb::MinTpiHashBuckets, llvm::pdb::TpiStreamHeader::NumHashBuckets, llvm::pdb::TpiStreamHeader::EmbeddedBuf::Off, llvm::pdb::PdbTpiV80, llvm::BinaryStreamReader::readArray(), llvm::BinaryStreamReader::readObject(), llvm::BinaryStreamReader::readSubstream(), llvm::pdb::PDBFile::safelyCreateIndexedStream(), llvm::BinaryStreamReader::setOffset(), llvm::BinarySubstreamRef::size(), llvm::BinarySubstreamRef::StreamData, llvm::Error::success(), llvm::pdb::TpiStreamHeader::TypeRecordBytes, and llvm::pdb::TpiStreamHeader::Version.
bool TpiStream::supportsTypeLookup | ( | ) | const |
Definition at line 177 of file TpiStream.cpp.
Referenced by findFullDeclForForwardRef(), and findRecordsByName().
|
inline |
Definition at line 57 of file TpiStream.h.
|
inline |
Definition at line 59 of file TpiStream.h.
uint32_t TpiStream::TypeIndexBegin | ( | ) | const |
Definition at line 125 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::TypeIndexBegin.
Referenced by getNumTypeRecords().
uint32_t TpiStream::TypeIndexEnd | ( | ) | const |
Definition at line 127 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::TypeIndexEnd.
Referenced by getNumTypeRecords().
CVTypeRange TpiStream::types | ( | bool * | HadError | ) | const |
Definition at line 242 of file TpiStream.cpp.
References llvm::VarStreamArray< ValueType, Extractor >::begin(), llvm::VarStreamArray< ValueType, Extractor >::end(), and llvm::make_range().
|
friend |
Definition at line 35 of file TpiStream.h.