29 NamedStreams(NamedStreams) {
30 ::memset(&Guid, 0,
sizeof(Guid));
42 Features.push_back(Sig);
48 (Features.size() + 1) *
sizeof(
uint32_t);
56 auto InfoS = WritableMappedBlockStream::createIndexedStream(
63 ::memset(&H, 0,
sizeof(H));
65 if (
auto EC = Writer.writeObject(H))
68 if (
auto EC = NamedStreams.
commit(Writer))
70 if (
auto EC = Writer.writeInteger(0))
72 for (
auto E : Features) {
73 if (
auto EC = Writer.writeEnum(
E))
76 assert(Writer.bytesRemaining() == 0);
uint32_t calculateSerializedLength() const
Compute iterated dominance frontiers using a linear time algorithm.
Error finalizeMsfLayout()
void setGuid(codeview::GUID G)
This represents the 'GUID' type from windows.h.
void setVersion(PdbRaw_ImplVer V)
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()