26 NamedStreams(NamedStreams) {
27 ::memset(&Guid, 0,
sizeof(Guid));
33 Features.push_back(Sig);
37 HashPDBContentsToGUID =
B;
50 (Features.size() + 1) *
sizeof(
uint32_t);
66 ::memset(&
H, 0,
sizeof(
H));
71 if (
auto EC = NamedStreams.
commit(Writer))
75 for (
auto E : Features) {
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Provides write only access to a subclass of WritableBinaryStream.
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
uint64_t bytesRemaining() const
Error writeEnum(T Num)
Similar to writeInteger.
Error writeObject(const T &Obj)
Writes the object Obj to the underlying stream, as if by using memcpy.
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
The TimeTraceScope is a helper class to call the begin and end functions of the time trace profiler.
BumpPtrAllocator & getAllocator()
Error setStreamSize(uint32_t Idx, uint32_t Size)
Update the size of an existing stream.
static std::unique_ptr< WritableMappedBlockStream > createIndexedStream(const MSFLayout &Layout, WritableBinaryStreamRef MsfData, uint32_t StreamIndex, BumpPtrAllocator &Allocator)
void setSignature(uint32_t S)
void addFeature(PdbRaw_FeatureSig Sig)
Error finalizeMsfLayout()
Error commit(const msf::MSFLayout &Layout, WritableBinaryStreamRef Buffer) const
InfoStreamBuilder(msf::MSFBuilder &Msf, NamedStreamMap &NamedStreams)
void setVersion(PdbRaw_ImplVer V)
void setHashPDBContentsToGUID(bool B)
void setGuid(codeview::GUID G)
Error commit(BinaryStreamWriter &Writer) const
uint32_t calculateSerializedLength() const
This is an optimization pass for GlobalISel generic memory operations.
This represents the 'GUID' type from windows.h.