Lines Matching refs:debugChunk
117 void analyzeSymbolSubsection(SectionChunk *debugChunk,
134 void writeSymbolRecord(SectionChunk *debugChunk,
177 SectionChunk *debugChunk = nullptr; member
223 void advanceRelocIndex(SectionChunk *debugChunk, ArrayRef<uint8_t> subsec);
225 void addUnrelocatedSubsection(SectionChunk *debugChunk,
228 void addFrameDataSubsection(SectionChunk *debugChunk,
235 void handleDebugS(SectionChunk *debugChunk);
555 void PDBLinker::writeSymbolRecord(SectionChunk *debugChunk, in writeSymbolRecord() argument
565 debugChunk->writeAndRelocateSubsection(sectionContents, sym.data(), in writeSymbolRecord()
570 TpiSource *source = debugChunk->file->debugTypesObj; in writeSymbolRecord()
582 SectionChunk *debugChunk, uint32_t &moduleSymOffset, in analyzeSymbolSubsection() argument
585 ObjFile *file = debugChunk->file; in analyzeSymbolSubsection()
590 ArrayRef<uint8_t> sectionContents = debugChunk->getContents(); in analyzeSymbolSubsection()
613 writeSymbolRecord(debugChunk, sectionContents, sym, alignedSize, in analyzeSymbolSubsection()
650 for (SectionChunk *debugChunk : file->getDebugChunks()) { in writeAllModuleSymbolRecords()
651 if (!debugChunk->live || debugChunk->getSize() == 0 || in writeAllModuleSymbolRecords()
652 debugChunk->getSectionName() != ".debug$S") in writeAllModuleSymbolRecords()
655 ArrayRef<uint8_t> sectionContents = debugChunk->getContents(); in writeAllModuleSymbolRecords()
686 writeSymbolRecord(debugChunk, sectionContents, sym, alignedSize, in writeAllModuleSymbolRecords()
755 void DebugSHandler::handleDebugS(SectionChunk *debugChunk) { in handleDebugS() argument
758 ArrayRef<uint8_t> contents = debugChunk->getContents(); in handleDebugS()
764 debugChunk->sortRelocations(); in handleDebugS()
789 addUnrelocatedSubsection(debugChunk, ss); in handleDebugS()
792 addFrameDataSubsection(debugChunk, ss); in handleDebugS()
795 linker.analyzeSymbolSubsection(debugChunk, moduleStreamSize, in handleDebugS()
845 UnrelocatedDebugSubsection(DebugSubsectionKind k, SectionChunk *debugChunk, in UnrelocatedDebugSubsection() argument
847 : DebugSubsection(k), debugChunk(debugChunk), subsec(subsec), in UnrelocatedDebugSubsection()
853 SectionChunk *debugChunk; member in __anon91ac17e40711::UnrelocatedDebugSubsection
862 debugChunk->writeAndRelocateSubsection(debugChunk->getContents(), subsec, in commit()
868 debugChunk->file->debugTypesObj) { in commit()
869 TpiSource *source = debugChunk->file->debugTypesObj; in commit()
877 log("bad inlinee line record in " + debugChunk->file->getName() + in commit()
886 void DebugSHandler::addUnrelocatedSubsection(SectionChunk *debugChunk, in addUnrelocatedSubsection() argument
891 advanceRelocIndex(debugChunk, subsec); in addUnrelocatedSubsection()
893 std::make_shared<UnrelocatedDebugSubsection>(ss.kind(), debugChunk, in addUnrelocatedSubsection()
897 void DebugSHandler::addFrameDataSubsection(SectionChunk *debugChunk, in addFrameDataSubsection() argument
905 advanceRelocIndex(debugChunk, subsec); in addFrameDataSubsection()
906 frameDataSubsecs.push_back({debugChunk, subsec, nextRelocIndex}); in addFrameDataSubsection()
950 SectionChunk *debugChunk = subsec.debugChunk; in finish() local
955 debugChunk->writeAndRelocateSubsection(debugChunk->getContents(), in finish()
1017 static ArrayRef<uint8_t> relocateDebugChunk(SectionChunk &debugChunk) { in relocateDebugChunk() argument
1018 uint8_t *buffer = bAlloc().Allocate<uint8_t>(debugChunk.getSize()); in relocateDebugChunk()
1019 assert(debugChunk.getOutputSectionIdx() == 0 && in relocateDebugChunk()
1021 debugChunk.writeTo(buffer); in relocateDebugChunk()
1022 return ArrayRef(buffer, debugChunk.getSize()); in relocateDebugChunk()
1037 for (SectionChunk *debugChunk : source->file->getDebugChunks()) { in addDebugSymbols()
1038 if (!debugChunk->live || debugChunk->getSize() == 0) in addDebugSymbols()
1041 bool isDebugS = debugChunk->getSectionName() == ".debug$S"; in addDebugSymbols()
1042 bool isDebugF = debugChunk->getSectionName() == ".debug$F"; in addDebugSymbols()
1047 dsh.handleDebugS(debugChunk); in addDebugSymbols()
1051 relocateDebugChunk(*debugChunk); in addDebugSymbols()