|
LLVM 23.0.0git
|
#include "llvm/DebugInfo/PDB/Native/TpiStream.h"
Friends | |
| class | TpiStreamBuilder |
Definition at line 35 of file TpiStream.h.
| TpiStream::TpiStream | ( | PDBFile & | File, |
| std::unique_ptr< msf::MappedBlockStream > | Stream ) |
Definition at line 35 of file TpiStream.cpp.
References llvm::move().
Referenced by findFullDeclForForwardRef(), and findRecordsByName().
|
default |
References LLVM_ABI.
| void TpiStream::buildHashMap | ( | ) |
Definition at line 143 of file TpiStream.cpp.
References llvm::codeview::TypeIndex::toArrayIndex().
Referenced by findFullDeclForForwardRef(), and findRecordsByName().
| Error TpiStream::commit | ( | ) |
Definition at line 259 of file TpiStream.cpp.
References llvm::Error::success().
| Expected< TypeIndex > TpiStream::findFullDeclForForwardRef | ( | codeview::TypeIndex | ForwardRefTI | ) | const |
Definition at line 179 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(), supportsTypeLookup(), llvm::Expected< T >::takeError(), and TpiStream().
Definition at line 159 of file TpiStream.cpp.
References buildHashMap(), llvm::codeview::computeTypeName(), llvm::pdb::hashStringV1(), supportsTypeLookup(), and TpiStream().
| HashTable< support::ulittle32_t > & TpiStream::getHashAdjusters | ( | ) |
Definition at line 251 of file TpiStream.cpp.
| uint32_t TpiStream::getHashKeySize | ( | ) | const |
Definition at line 141 of file TpiStream.cpp.
| FixedStreamArray< support::ulittle32_t > TpiStream::getHashValues | ( | ) | const |
Definition at line 243 of file TpiStream.cpp.
| uint32_t TpiStream::getNumHashBuckets | ( | ) | const |
Definition at line 140 of file TpiStream.cpp.
| uint32_t TpiStream::getNumTypeRecords | ( | ) | const |
Definition at line 128 of file TpiStream.cpp.
References TypeIndexBegin(), and TypeIndexEnd().
Referenced by reload().
| PdbRaw_TpiVer TpiStream::getTpiVersion | ( | ) | const |
Definition at line 119 of file TpiStream.cpp.
| codeview::CVType TpiStream::getType | ( | codeview::TypeIndex | Index | ) |
Get a type by its index.
Index must be a valid type index. Otherwise, this method asserts in Debug mode.
Definition at line 220 of file TpiStream.cpp.
References assert().
| uint16_t TpiStream::getTypeHashStreamAuxIndex | ( | ) | const |
Definition at line 136 of file TpiStream.cpp.
| uint16_t TpiStream::getTypeHashStreamIndex | ( | ) | const |
Definition at line 132 of file TpiStream.cpp.
| FixedStreamArray< TypeIndexOffset > TpiStream::getTypeIndexOffsets | ( | ) | const |
Definition at line 247 of file TpiStream.cpp.
Referenced by reload().
| codeview::CVType TpiStream::getTypeOrEmpty | ( | codeview::TypeIndex | Index | ) |
The same as getType() except that the return value is defined (empty/invalid) if Index doesn't exist.
Use codeview::CVType::valid() to check the return value.
Definition at line 225 of file TpiStream.cpp.
| Expected< codeview::CVType > TpiStream::getTypeOrError | ( | codeview::TypeIndex | Index | ) |
Get the type at Index if it exists or an error about the failure.
Definition at line 235 of file TpiStream.cpp.
| BinarySubstreamRef TpiStream::getTypeRecordsSubstream | ( | ) | const |
Definition at line 239 of file TpiStream.cpp.
| Error TpiStream::reload | ( | ) |
Definition at line 40 of file TpiStream.cpp.
References llvm::BinaryStreamReader::bytesRemaining(), llvm::consumeError(), llvm::pdb::corrupt_file, llvm::codeview::EC, getNumTypeRecords(), getTypeIndexOffsets(), llvm::pdb::kInvalidStreamIndex, llvm::make_error(), llvm::pdb::MaxTpiHashBuckets, llvm::pdb::MinTpiHashBuckets, llvm::pdb::PdbTpiV80, llvm::BinaryStreamReader::readArray(), llvm::BinaryStreamReader::readObject(), llvm::BinaryStreamReader::readSubstream(), llvm::BinaryStreamReader::setOffset(), and llvm::Error::success().
| bool TpiStream::supportsTypeLookup | ( | ) | const |
Definition at line 176 of file TpiStream.cpp.
Referenced by findFullDeclForForwardRef(), and findRecordsByName().
| std::optional< codeview::CVType > TpiStream::tryGetType | ( | codeview::TypeIndex | Index | ) |
Get the type at Index if it exists or std::nullopt otherwise.
Definition at line 230 of file TpiStream.cpp.
|
inline |
Definition at line 60 of file TpiStream.h.
|
inline |
Definition at line 62 of file TpiStream.h.
| uint32_t TpiStream::TypeIndexBegin | ( | ) | const |
Definition at line 124 of file TpiStream.cpp.
Referenced by getNumTypeRecords().
| uint32_t TpiStream::TypeIndexEnd | ( | ) | const |
Definition at line 126 of file TpiStream.cpp.
Referenced by getNumTypeRecords().
| CVTypeRange TpiStream::types | ( | bool * | HadError | ) | const |
Definition at line 255 of file TpiStream.cpp.
References llvm::make_range().
|
friend |
Definition at line 36 of file TpiStream.h.
References LLVM_ABI, and TpiStreamBuilder.
Referenced by TpiStreamBuilder.