29 NamedStreams(NamedStreams) {
36 Features.push_back(Sig);
40 HashPDBContentsToGUID =
B;
53 (Features.size() + 1) *
sizeof(
uint32_t);
61 auto InfoS = WritableMappedBlockStream::createIndexedStream(
70 if (
auto EC = Writer.writeObject(H))
73 if (
auto EC = NamedStreams.
commit(Writer))
75 if (
auto EC = Writer.writeInteger(0))
77 for (
auto E : Features) {
78 if (
auto EC = Writer.writeEnum(
E))
81 assert(Writer.bytesRemaining() == 0);
uint32_t calculateSerializedLength() const
This class represents lattice values for constants.
Error finalizeMsfLayout()
void setGuid(codeview::GUID G)
This represents the 'GUID' type from windows.h.
void setVersion(PdbRaw_ImplVer V)
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
void setHashPDBContentsToGUID(bool B)
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
Provides write only access to a subclass of WritableBinaryStream.
void setSignature(uint32_t S)
Error setStreamSize(uint32_t Idx, uint32_t Size)
Update the size of an existing stream.
Error commit(BinaryStreamWriter &Writer) const
static ErrorSuccess success()
Create a success value.
Error commit(const msf::MSFLayout &Layout, WritableBinaryStreamRef Buffer) const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Lightweight error class with error context and mandatory checking.
void addFeature(PdbRaw_FeatureSig Sig)
BumpPtrAllocator & getAllocator()