LLVM  4.0.0
GlobalsStream.h
Go to the documentation of this file.
1 //===- GlobalsStream.h - PDB Index of Symbols by Name ------ ----*- 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_GLOBALS_STREAM_H
11 #define LLVM_DEBUGINFO_PDB_RAW_GLOBALS_STREAM_H
12 
18 #include "llvm/Support/Error.h"
19 
20 namespace llvm {
21 namespace pdb {
22 class DbiStream;
23 class PDBFile;
24 
26 public:
27  explicit GlobalsStream(std::unique_ptr<msf::MappedBlockStream> Stream);
29  Error commit();
31  return HashBuckets;
32  }
33  uint32_t getNumBuckets() const { return NumBuckets; }
34  Error reload();
35 
36 private:
39  uint32_t NumBuckets;
40  std::unique_ptr<msf::MappedBlockStream> Stream;
41 };
42 }
43 }
44 
45 #endif
uint32_t getNumBuckets() const
Definition: GlobalsStream.h:33
GlobalsStream(std::unique_ptr< msf::MappedBlockStream > Stream)
Lightweight error class with error context and mandatory checking.
msf::FixedStreamArray< support::ulittle32_t > getHashBuckets() const
Definition: GlobalsStream.h:30