LLVM  5.0.0
PublicsStreamBuilder.h
Go to the documentation of this file.
1 //===- PublicsStreamBuilder.h - PDB Publics Stream Creation -----*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_DEBUGINFO_PDB_RAW_PDBPUBLICSTREAMBUILDER_H
11 #define LLVM_DEBUGINFO_PDB_RAW_PDBPUBLICSTREAMBUILDER_H
12 
18 #include "llvm/Support/Endian.h"
19 #include "llvm/Support/Error.h"
20 
21 namespace llvm {
22 namespace msf {
23 class MSFBuilder;
24 }
25 namespace pdb {
26 class PublicsStream;
27 struct PublicsStreamHeader;
28 
30 public:
33 
36 
39 
40  Error commit(BinaryStreamWriter &PublicsWriter);
41 
42  uint32_t getStreamIndex() const { return StreamIdx; }
43  uint32_t getRecordStreamIdx() const { return RecordStreamIdx; }
44 
45 private:
46  uint32_t StreamIdx = kInvalidStreamIndex;
47  uint32_t RecordStreamIdx = kInvalidStreamIndex;
48  std::vector<PSHashRecord> HashRecords;
49  msf::MSFBuilder &Msf;
50 };
51 } // namespace pdb
52 } // namespace llvm
53 
54 #endif
PublicsStreamBuilder & operator=(const PublicsStreamBuilder &)=delete
const uint16_t kInvalidStreamIndex
Definition: RawConstants.h:20
Error commit(BinaryStreamWriter &PublicsWriter)
Provides write only access to a subclass of WritableBinaryStream.
PublicsStreamBuilder(msf::MSFBuilder &Msf)
Lightweight error class with error context and mandatory checking.
Definition: Error.h:156