LLVM 22.0.0git
PDBStringTable.h
Go to the documentation of this file.
1//===- PDBStringTable.h - PDB String Table -----------------------*- C++-*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_DEBUGINFO_PDB_NATIVE_PDBSTRINGTABLE_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_PDBSTRINGTABLE_H
11
12#include "llvm/ADT/StringRef.h"
16#include "llvm/Support/Endian.h"
17#include "llvm/Support/Error.h"
18#include <cstdint>
19
20namespace llvm {
21class BinaryStreamReader;
22
23namespace pdb {
24
25struct PDBStringTableHeader;
26
28public:
30
35
38
40
42 getStringTable() const;
43
44private:
45 Error readHeader(BinaryStreamReader &Reader);
46 Error readStrings(BinaryStreamReader &Reader);
47 Error readHashTable(BinaryStreamReader &Reader);
48 Error readEpilogue(BinaryStreamReader &Reader);
49
50 const PDBStringTableHeader *Header = nullptr;
53 uint32_t NameCount = 0;
54};
55
56} // end namespace pdb
57} // end namespace llvm
58
59#endif // LLVM_DEBUGINFO_PDB_NATIVE_PDBSTRINGTABLE_H
Lightweight arrays that are backed by an arbitrary BinaryStream.
#define LLVM_ABI
Definition: Compiler.h:213
Provides read only access to a subclass of BinaryStream.
Lightweight error class with error context and mandatory checking.
Definition: Error.h:159
Tagged union holding either a T or a Error.
Definition: Error.h:485
FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length.
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:55
Represents a read-only view of a CodeView string table.
LLVM_ABI const codeview::DebugStringTableSubsectionRef & getStringTable() const
LLVM_ABI uint32_t getSignature() const
LLVM_ABI uint32_t getNameCount() const
LLVM_ABI Expected< uint32_t > getIDForString(StringRef Str) const
LLVM_ABI Error reload(BinaryStreamReader &Reader)
LLVM_ABI Expected< StringRef > getStringForID(uint32_t ID) const
LLVM_ABI uint32_t getByteSize() const
LLVM_ABI uint32_t getHashVersion() const
LLVM_ABI FixedStreamArray< support::ulittle32_t > name_ids() const
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
The header preceding the /names stream.
Definition: RawTypes.h:312