MCPcopy Create free account
hub / github.com/Mixaill/FakePDB / processSections

Method processSections

src_cpp/src/pdb/pdb_creator.cpp:161–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 }
160
161 bool PdbCreator::processSections() {
162 auto &DbiBuilder = _pdbBuilder.getDbiBuilder();
163
164 // Add Section Map stream.
165 auto sections = _pefile.GetSectionHeaders();
166 DbiBuilder.createSectionMap(sections);
167
168 // Add COFF section header stream.
169 auto sectionsTable = llvm::ArrayRef<uint8_t>(reinterpret_cast<const uint8_t *>(sections.begin()),
170 reinterpret_cast<const uint8_t *>(sections.end()));
171 if (DbiBuilder.addDbgStream(llvm::pdb::DbgHeaderType::SectionHdr, sectionsTable)) {
172 return false;
173 }
174
175 return true;
176 }
177
178 void PdbCreator::processSymbols() {
179 /*

Callers

nothing calls this directly

Calls 3

GetSectionHeadersMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected