9#ifndef LLVM_DEBUGINFO_PDB_NATIVE_DBIMODULEDESCRIPTORBUILDER_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_DBIMODULEDESCRIPTORBUILDER_H
24class BinaryStreamWriter;
84 MergeSymsCallback = Callback;
88 StringTableFixups = std::move(Fixups);
132 uint32_t calculateC13DebugInfoSize()
const;
140 std::string ObjFileName;
141 std::vector<std::string> SourceFiles;
142 std::vector<SymbolListWrapper> Symbols;
144 void *MergeSymsCtx =
nullptr;
147 std::vector<StringTableFixup> StringTableFixups;
149 std::vector<codeview::DebugSubsectionRecordBuilder> C13Builders;
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.
StringRef - Represent a constant reference to a string, i.e.
CVRecord is a fat pointer (base + size pair) to a symbol or type record.
void addUnmergedSymbols(void *SymSrc, uint32_t SymLength)
StringRef getModuleName() const
void setObjFileName(StringRef Name)
void addDebugSubsection(std::shared_ptr< codeview::DebugSubsection > Subsection)
unsigned getModuleIndex() const
~DbiModuleDescriptorBuilder()
void setFirstSectionContrib(const SectionContrib &SC)
Error finalizeMsfLayout()
uint16_t getStreamIndex() const
void addSymbol(codeview::CVSymbol Symbol)
void setPdbFilePathNI(uint32_t NI)
Error commitSymbolStream(const msf::MSFLayout &MsfLayout, WritableBinaryStreamRef MsfBuffer)
Commit the accumulated symbols to the module symbol stream.
Error commit(BinaryStreamWriter &ModiWriter)
Commit the DBI descriptor to the DBI stream.
ArrayRef< std::string > source_files() const
DbiModuleDescriptorBuilder & operator=(const DbiModuleDescriptorBuilder &)=delete
Error(*)(void *Ctx, void *Symbols, BinaryStreamWriter &Writer) MergeSymbolsCallback
void setMergeSymbolsCallback(void *Ctx, MergeSymbolsCallback Callback)
uint32_t getNextSymbolOffset() const
Return the offset within the module symbol stream of the next symbol record passed to addSymbol.
DbiModuleDescriptorBuilder(const DbiModuleDescriptorBuilder &)=delete
StringRef getObjFileName() const
void addSymbolsInBulk(ArrayRef< uint8_t > BulkSymbols)
uint32_t calculateSerializedLength() const
void setStringTableFixups(std::vector< StringTableFixup > &&Fixups)
This is an optimization pass for GlobalISel generic memory operations.
Represents a string table reference at some offset in the module symbol stream.
uint32_t SymOffsetOfReference
ArrayRef< uint8_t > asArray() const
SymbolListWrapper(void *SymSrc, uint32_t Length)
SymbolListWrapper(ArrayRef< uint8_t > Syms)