| 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 | /* |
nothing calls this directly
no test coverage detected