LLVM
8.0.1
|
#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 37 of file TpiStream.cpp.
References ~TpiStream().
|
default |
Referenced by TpiStream().
void TpiStream::buildHashMap | ( | ) |
Definition at line 146 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 248 of file TpiStream.cpp.
References llvm::Error::success().
Expected< TypeIndex > TpiStream::findFullDeclForForwardRef | ( | codeview::TypeIndex | ForwardRefTI | ) | const |
Definition at line 182 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 162 of file TpiStream.cpp.
References buildHashMap(), llvm::codeview::computeTypeName(), llvm::pdb::hashStringV1(), llvm::pdb::TpiStreamHeader::NumHashBuckets, and supportsTypeLookup().
HashTable< support::ulittle32_t > & TpiStream::getHashAdjusters | ( | ) |
Definition at line 240 of file TpiStream.cpp.
uint32_t TpiStream::getHashKeySize | ( | ) | const |
Definition at line 144 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::HashKeySize.
FixedStreamArray< support::ulittle32_t > TpiStream::getHashValues | ( | ) | const |
Definition at line 232 of file TpiStream.cpp.
uint32_t TpiStream::getNumHashBuckets | ( | ) | const |
Definition at line 143 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::NumHashBuckets.
uint32_t TpiStream::getNumTypeRecords | ( | ) | const |
Definition at line 131 of file TpiStream.cpp.
References TypeIndexBegin(), and TypeIndexEnd().
Referenced by reload().
PdbRaw_TpiVer TpiStream::getTpiVersion | ( | ) | const |
Definition at line 122 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::Version.
codeview::CVType TpiStream::getType | ( | codeview::TypeIndex | Index | ) |
Definition at line 223 of file TpiStream.cpp.
References assert(), and llvm::codeview::TypeIndex::isSimple().
uint16_t TpiStream::getTypeHashStreamAuxIndex | ( | ) | const |
Definition at line 139 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::HashAuxStreamIndex.
uint16_t TpiStream::getTypeHashStreamIndex | ( | ) | const |
Definition at line 135 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::HashStreamIndex.
FixedStreamArray< TypeIndexOffset > TpiStream::getTypeIndexOffsets | ( | ) | const |
Definition at line 236 of file TpiStream.cpp.
Referenced by reload().
BinarySubstreamRef TpiStream::getTypeRecordsSubstream | ( | ) | const |
Definition at line 228 of file TpiStream.cpp.
Error TpiStream::reload | ( | ) |
Definition at line 42 of file TpiStream.cpp.
References llvm::BinaryStreamReader::bytesRemaining(), llvm::pdb::corrupt_file, llvm::codeview::EC, llvm::pdb::PDBFile::getAllocator(), llvm::pdb::PDBFile::getMsfBuffer(), llvm::pdb::PDBFile::getMsfLayout(), llvm::pdb::PDBFile::getNumStreams(), getNumTypeRecords(), getTypeIndexOffsets(), llvm::pdb::TpiStreamHeader::HashAdjBuffer, llvm::pdb::TpiStreamHeader::HashKeySize, llvm::pdb::TpiStreamHeader::HashStreamIndex, llvm::pdb::TpiStreamHeader::HashValueBuffer, llvm::pdb::TpiStreamHeader::HeaderSize, llvm::AArch64CC::HS, 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::BinarySubstreamRef::size(), llvm::BinarySubstreamRef::StreamData, llvm::Error::success(), llvm::pdb::TpiStreamHeader::TypeRecordBytes, and llvm::pdb::TpiStreamHeader::Version.
bool TpiStream::supportsTypeLookup | ( | ) | const |
Definition at line 179 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.
References getType(), Name, and llvm::codeview::Pdb.
Referenced by llvm::pdb::NativeTypeFunctionSig::~NativeTypeFunctionSig().
uint32_t TpiStream::TypeIndexBegin | ( | ) | const |
Definition at line 127 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::TypeIndexBegin.
Referenced by getNumTypeRecords().
uint32_t TpiStream::TypeIndexEnd | ( | ) | const |
Definition at line 129 of file TpiStream.cpp.
References llvm::pdb::TpiStreamHeader::TypeIndexEnd.
Referenced by getNumTypeRecords().
CVTypeRange TpiStream::types | ( | bool * | HadError | ) | const |
Definition at line 244 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.