22 using namespace llvm::codeview;
23 using namespace llvm::msf;
24 using namespace llvm::pdb;
29 NamedStreams(NamedStreams) {}
40 Features.push_back(Sig);
45 (Features.size() + 1) *
sizeof(
uint32_t);
53 auto InfoS = WritableMappedBlockStream::createIndexedStream(
62 if (
auto EC = Writer.writeObject(H))
65 if (
auto EC = NamedStreams.
commit(Writer))
67 if (
auto EC = Writer.writeInteger(0))
69 for (
auto E : Features) {
70 if (
auto EC = Writer.writeEnum(
E))
Error commit(const msf::MSFLayout &Layout, WritableBinaryStreamRef Buffer) const
Error finalizeMsfLayout()
void setGuid(codeview::GUID G)
This represents the 'GUID' type from windows.h.
void setVersion(PdbRaw_ImplVer V)
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.
static ErrorSuccess success()
Create a success value.
Error commit(BinaryStreamWriter &Writer) const
Lightweight error class with error context and mandatory checking.
void addFeature(PdbRaw_FeatureSig Sig)
BumpPtrAllocator & getAllocator()