10 #ifndef LLVM_DEBUGINFO_PDB_RAW_PDBDBISTREAMBUILDER_H 11 #define LLVM_DEBUGINFO_PDB_RAW_PDBDBISTREAMBUILDER_H 40 struct DbiStreamHeader;
41 class DbiModuleDescriptorBuilder;
54 void setBuildNumber(uint16_t
B);
55 void setBuildNumber(uint8_t Major, uint8_t Minor);
56 void setPdbDllVersion(uint16_t V);
57 void setPdbDllRbld(uint16_t R);
58 void setFlags(uint16_t
F);
68 uint32_t calculateSerializedLength()
const;
71 void setPublicsStreamIndex(
uint32_t Index);
72 void setSymbolRecordStreamIndex(
uint32_t Index);
80 Error finalizeMsfLayout();
89 static std::vector<SecMapEntry>
94 std::function<Error(BinaryStreamWriter &)> WriteFn;
100 uint32_t calculateModiSubstreamSize()
const;
101 uint32_t calculateNamesOffset()
const;
102 uint32_t calculateSectionContribsStreamSize()
const;
103 uint32_t calculateSectionMapStreamSize()
const;
104 uint32_t calculateFileInfoSubstreamSize()
const;
105 uint32_t calculateNamesBufferSize()
const;
106 uint32_t calculateDbgStreamsSize()
const;
108 Error generateFileInfoSubstream();
115 uint16_t BuildNumber;
116 uint16_t PdbDllVersion;
126 std::vector<std::unique_ptr<DbiModuleDescriptorBuilder>> ModiList;
129 std::vector<object::FpoData> OldFpoData;
138 std::array<Optional<DebugStream>, (int)DbgHeaderType::Max> DbgStreams;
An implementation of BinaryStream which holds its entire data set in a single contiguous buffer...
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
Data in the SUBSEC_FRAMEDATA subection.
amdgpu Simplify well known AMD library false Value Value const Twine & Name
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.