10 #ifndef LLVM_DEBUGINFO_PDB_RAW_PDBDBISTREAMBUILDER_H 11 #define LLVM_DEBUGINFO_PDB_RAW_PDBDBISTREAMBUILDER_H 35 struct DbiStreamHeader;
36 class DbiModuleDescriptorBuilder;
49 void setBuildNumber(uint16_t
B);
50 void setBuildNumber(uint8_t Major, uint8_t Minor);
51 void setPdbDllVersion(uint16_t V);
52 void setPdbDllRbld(uint16_t R);
53 void setFlags(uint16_t
F);
63 uint32_t calculateSerializedLength()
const;
66 void setPublicsStreamIndex(
uint32_t Index);
67 void setSymbolRecordStreamIndex(
uint32_t Index);
73 Error finalizeMsfLayout();
82 static std::vector<SecMapEntry>
92 uint32_t calculateModiSubstreamSize()
const;
93 uint32_t calculateNamesOffset()
const;
94 uint32_t calculateSectionContribsStreamSize()
const;
95 uint32_t calculateSectionMapStreamSize()
const;
96 uint32_t calculateFileInfoSubstreamSize()
const;
97 uint32_t calculateNamesBufferSize()
const;
98 uint32_t calculateDbgStreamsSize()
const;
100 Error generateFileInfoSubstream();
107 uint16_t BuildNumber;
108 uint16_t PdbDllVersion;
118 std::vector<std::unique_ptr<DbiModuleDescriptorBuilder>> ModiList;
127 std::array<Optional<DebugStream>, (int)DbgHeaderType::Max> DbgStreams;
An implementation of BinaryStream which holds its entire data set in a single contiguous buffer...
Compute iterated dominance frontiers using a linear time algorithm.
A Module instance is used to store all the information related to an LLVM module. ...
Tagged union holding either a T or a Error.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
const uint16_t kInvalidStreamIndex
void addSectionContrib(const SectionContrib &SC)
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
The instances of the Type class are immutable: once they are created, they are never changed...
Allocate memory in an ever growing pool, as if by bump-pointer.
CHAIN = SC CHAIN, Imm128 - System call.
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.