32 "Invalid hash table signature");
35 "Unsupported hash version");
49 "Invalid hash table byte length"));
66 if (
auto EC = Reader.
readArray(IDs, *HashCount)) {
69 "Could not read bucket array"));
88 if (
auto EC = readHeader(SectionReader))
91 std::tie(SectionReader, Reader) = Reader.
split(Header->
ByteSize);
92 if (
auto EC = readStrings(SectionReader))
97 if (
auto EC = readHashTable(Reader))
100 std::tie(SectionReader, Reader) = Reader.
split(
sizeof(
uint32_t));
101 if (
auto EC = readEpilogue(SectionReader))
115 size_t Count = IDs.
size();
117 for (
size_t I = 0;
I < Count; ++
I) {
129 return ExpectedStr.takeError();
131 if (*ExpectedStr == Str)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Provides read only access to a subclass of BinaryStream.
Error readStreamRef(BinaryStreamRef &Ref)
Read the entire remainder of the underlying stream into Ref.
Error readObject(const T *&Dest)
Get a pointer to an object of type T from the underlying stream, as if by memcpy, and store the resul...
Error readInteger(T &Dest)
Read an integer of the specified endianness into Dest and update the stream's offset.
uint64_t bytesRemaining() const
std::pair< BinaryStreamReader, BinaryStreamReader > split(uint64_t Offset) const
Error readArray(ArrayRef< T > &Array, uint32_t NumElements)
Get a reference to a NumElements element array of objects of type T from the underlying stream as if ...
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Tagged union holding either a T or a Error.
FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length.
StringRef - Represent a constant reference to a string, i.e.
Represents a read-only view of a CodeView string table.
Expected< StringRef > getString(uint32_t Offset) const
Error initialize(BinaryStreamRef Contents)
const codeview::DebugStringTableSubsectionRef & getStringTable() const
uint32_t getSignature() const
uint32_t getNameCount() const
Expected< uint32_t > getIDForString(StringRef Str) const
Error reload(BinaryStreamReader &Reader)
Expected< StringRef > getStringForID(uint32_t ID) const
uint32_t getByteSize() const
uint32_t getHashVersion() const
FixedStreamArray< support::ulittle32_t > name_ids() const
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
uint32_t hashStringV1(StringRef Str)
const uint32_t PDBStringTableSignature
uint32_t hashStringV2(StringRef Str)
This is an optimization pass for GlobalISel generic memory operations.
Error joinErrors(Error E1, Error E2)
Concatenate errors.