27 NamedStreams(NamedStreams) {
28 ::memset(&Guid, 0,
sizeof(Guid));
34 Features.push_back(Sig);
38 HashPDBContentsToGUID =
B;
51 (Features.size() + 1) *
sizeof(
uint32_t);
67 ::memset(&
H, 0,
sizeof(
H));
72 if (
auto EC = NamedStreams.
commit(Writer))
76 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.