9#ifndef LLVM_DEBUGINFO_PDB_NATIVE_DBISTREAMBUILDER_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_DBISTREAMBUILDER_H
84 SectionContribs.emplace_back(SC);
98 uint32_t calculateModiSubstreamSize()
const;
99 uint32_t calculateNamesOffset()
const;
100 uint32_t calculateSectionContribsStreamSize()
const;
101 uint32_t calculateSectionMapStreamSize()
const;
102 uint32_t calculateFileInfoSubstreamSize()
const;
103 uint32_t calculateNamesBufferSize()
const;
104 uint32_t calculateDbgStreamsSize()
const;
106 Error generateFileInfoSubstream();
111 std::optional<PdbRaw_DbiVer> VerHeader;
117 PDB_Machine MachineType;
122 const DbiStreamHeader *Header;
124 std::vector<std::unique_ptr<DbiModuleDescriptorBuilder>> ModiList;
126 std::optional<codeview::DebugFrameDataSubsection> NewFpoData;
127 std::vector<object::FpoData> OldFpoData;
131 PDBStringTableBuilder ECNamesBuilder;
135 std::vector<SecMapEntry> SectionMap;
This file defines the StringMap class.
This file defines the BumpPtrAllocator interface.
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Provides write only access to a subclass of WritableBinaryStream.
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
A Module instance is used to store all the information related to an LLVM module.
An implementation of BinaryStream which holds its entire data set in a single contiguous buffer.
StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...
StringRef - Represent a constant reference to a string, i.e.
void addSectionContrib(const SectionContrib &SC)
LLVM_ABI void createSectionMap(ArrayRef< llvm::object::coff_section > SecHdrs)
LLVM_ABI void addOldFpoData(const object::FpoData &Fpo)
LLVM_ABI void setPublicsStreamIndex(uint32_t Index)
LLVM_ABI void setFlags(uint16_t F)
LLVM_ABI Error addModuleSourceFile(DbiModuleDescriptorBuilder &Module, StringRef File)
DbiStreamBuilder(const DbiStreamBuilder &)=delete
LLVM_ABI ~DbiStreamBuilder()
LLVM_ABI void setAge(uint32_t A)
LLVM_ABI void setGlobalsStreamIndex(uint32_t Index)
LLVM_ABI Expected< uint32_t > getSourceFileNameIndex(StringRef FileName)
LLVM_ABI Error finalizeMsfLayout()
DbiStreamBuilder & operator=(const DbiStreamBuilder &)=delete
LLVM_ABI void setSymbolRecordStreamIndex(uint32_t Index)
LLVM_ABI void addNewFpoData(const codeview::FrameData &FD)
LLVM_ABI void setVersionHeader(PdbRaw_DbiVer V)
LLVM_ABI Error commit(const msf::MSFLayout &Layout, WritableBinaryStreamRef MsfBuffer)
LLVM_ABI Expected< DbiModuleDescriptorBuilder & > addModuleInfo(StringRef ModuleName)
LLVM_ABI uint32_t calculateSerializedLength() const
LLVM_ABI Error addDbgStream(pdb::DbgHeaderType Type, ArrayRef< uint8_t > Data)
LLVM_ABI uint32_t addECName(StringRef Name)
LLVM_ABI void setBuildNumber(uint16_t B)
LLVM_ABI void setPdbDllVersion(uint16_t V)
LLVM_ABI void setMachineType(PDB_Machine M)
LLVM_ABI void setPdbDllRbld(uint16_t R)
LLVM_ABI DbiStreamBuilder(msf::MSFBuilder &Msf)
const uint16_t kInvalidStreamIndex
This is an optimization pass for GlobalISel generic memory operations.
BumpPtrAllocatorImpl BumpPtrAllocator
The standard BumpPtrAllocator which just uses the default template parameters.
Data in the SUBSEC_FRAMEDATA subection.