diff options
Diffstat (limited to 'llvm/include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h')
-rw-r--r-- | llvm/include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h b/llvm/include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h index d9be238af07bb..24664c31e7ca2 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h +++ b/llvm/include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h @@ -57,7 +57,6 @@ public: void setFlags(uint16_t F); void setMachineType(PDB_Machine M); void setMachineType(COFF::MachineTypes M); - void setSectionMap(ArrayRef<SecMapEntry> SecMap); // Add given bytes as a new stream. Error addDbgStream(pdb::DbgHeaderType Type, ArrayRef<uint8_t> Data); @@ -84,9 +83,8 @@ public: SectionContribs.emplace_back(SC); } - // A helper function to create a Section Map from a COFF section header. - static std::vector<SecMapEntry> - createSectionMap(ArrayRef<llvm::object::coff_section> SecHdrs); + // Populate the Section Map from COFF section headers. + void createSectionMap(ArrayRef<llvm::object::coff_section> SecHdrs); private: struct DebugStream { @@ -133,7 +131,7 @@ private: WritableBinaryStreamRef NamesBuffer; MutableBinaryByteStream FileInfoBuffer; std::vector<SectionContrib> SectionContribs; - ArrayRef<SecMapEntry> SectionMap; + std::vector<SecMapEntry> SectionMap; std::array<Optional<DebugStream>, (int)DbgHeaderType::Max> DbgStreams; }; } |