1 //===- PublicsStream.h - PDB Public Symbol Stream -------- ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_RAW_PUBLICSSTREAM_H
11 #define LLVM_DEBUGINFO_PDB_RAW_PUBLICSSTREAM_H
13 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
14 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
15 #include "llvm/DebugInfo/PDB/Native/RawConstants.h"
16 #include "llvm/DebugInfo/PDB/Native/RawTypes.h"
17 #include "llvm/DebugInfo/PDB/PDBTypes.h"
18 #include "llvm/Support/BinaryStreamArray.h"
19 #include "llvm/Support/Error.h"
31 PublicsStream(PDBFile &File, std::unique_ptr<msf::MappedBlockStream> Stream);
35 uint32_t getSymHash() const;
36 uint32_t getAddrMap() const;
37 uint32_t getNumBuckets() const { return NumBuckets; }
38 iterator_range<codeview::CVSymbolArray::Iterator>
39 getSymbols(bool *HadError) const;
40 FixedStreamArray<support::ulittle32_t> getHashBuckets() const {
43 FixedStreamArray<support::ulittle32_t> getAddressMap() const {
46 FixedStreamArray<support::ulittle32_t> getThunkMap() const {
49 FixedStreamArray<SectionOffset> getSectionOffsets() const {
50 return SectionOffsets;
58 std::unique_ptr<msf::MappedBlockStream> Stream;
59 uint32_t NumBuckets = 0;
60 ArrayRef<uint8_t> Bitmap;
61 FixedStreamArray<PSHashRecord> HashRecords;
62 FixedStreamArray<support::ulittle32_t> HashBuckets;
63 FixedStreamArray<support::ulittle32_t> AddressMap;
64 FixedStreamArray<support::ulittle32_t> ThunkMap;
65 FixedStreamArray<SectionOffset> SectionOffsets;
67 const HeaderInfo *Header;
68 const GSIHashHeader *HashHdr;