LLVM 22.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
15#include "llvm/Support/Error.h"
16
17namespace llvm {
18namespace msf {
19class MappedBlockStream;
20}
21namespace pdb {
22struct PublicsStreamHeader;
23struct SectionOffset;
24
26public:
27 LLVM_ABI PublicsStream(std::unique_ptr<msf::MappedBlockStream> Stream);
30
34 const GSIHashTable &getPublicsTable() const { return PublicsTable; }
36 return AddressMap;
37 }
39 return ThunkMap;
40 }
42 return SectionOffsets;
43 }
44
45private:
46 std::unique_ptr<msf::MappedBlockStream> Stream;
47 GSIHashTable PublicsTable;
51
52 const PublicsStreamHeader *Header;
53};
54}
55}
56
57#endif
Lightweight arrays that are backed by an arbitrary BinaryStream.
#define LLVM_ABI
Definition: Compiler.h:213
Lightweight error class with error context and mandatory checking.
Definition: Error.h:159
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:51
FixedStreamArray< support::ulittle32_t > getThunkMap() const
Definition: PublicsStream.h:38
LLVM_ABI uint32_t getSymHash() const
FixedStreamArray< support::ulittle32_t > getAddressMap() const
Definition: PublicsStream.h:35
LLVM_ABI uint32_t getThunkTableOffset() const
const GSIHashTable & getPublicsTable() const
Definition: PublicsStream.h:34
LLVM_ABI Error reload()
FixedStreamArray< SectionOffset > getSectionOffsets() const
Definition: PublicsStream.h:41
LLVM_ABI uint16_t getThunkTableSection() const
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18