LLVM 20.0.0git
PublicsStream.h
Go to the documentation of this file.
1//===- PublicsStream.h - PDB Public Symbol Stream -------- ------*- 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_PUBLICSSTREAM_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_PUBLICSSTREAM_H
11
14#include "llvm/Support/Error.h"
15
16namespace llvm {
17namespace msf {
18class MappedBlockStream;
19}
20namespace pdb {
21struct PublicsStreamHeader;
22struct SectionOffset;
23
25public:
26 PublicsStream(std::unique_ptr<msf::MappedBlockStream> Stream);
28 Error reload();
29
30 uint32_t getSymHash() const;
33 const GSIHashTable &getPublicsTable() const { return PublicsTable; }
35 return AddressMap;
36 }
38 return ThunkMap;
39 }
41 return SectionOffsets;
42 }
43
44private:
45 std::unique_ptr<msf::MappedBlockStream> Stream;
46 GSIHashTable PublicsTable;
50
51 const PublicsStreamHeader *Header;
52};
53}
54}
55
56#endif
Lightweight arrays that are backed by an arbitrary BinaryStream.
Lightweight error class with error context and mandatory checking.
Definition: Error.h:160
FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length.
A readonly view of a hash table used in the globals and publics streams.
Definition: GlobalsStream.h:50
FixedStreamArray< support::ulittle32_t > getThunkMap() const
Definition: PublicsStream.h:37
uint32_t getSymHash() const
FixedStreamArray< support::ulittle32_t > getAddressMap() const
Definition: PublicsStream.h:34
uint32_t getThunkTableOffset() const
const GSIHashTable & getPublicsTable() const
Definition: PublicsStream.h:33
FixedStreamArray< SectionOffset > getSectionOffsets() const
Definition: PublicsStream.h:40
uint16_t getThunkTableSection() const
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18