Lines Matching refs:debugChunk
116 void analyzeSymbolSubsection(SectionChunk *debugChunk,
133 void writeSymbolRecord(SectionChunk *debugChunk,
171 SectionChunk *debugChunk = nullptr; member
220 void advanceRelocIndex(SectionChunk *debugChunk, ArrayRef<uint8_t> subsec);
222 void addUnrelocatedSubsection(SectionChunk *debugChunk,
225 void addFrameDataSubsection(SectionChunk *debugChunk,
234 void handleDebugS(SectionChunk *debugChunk);
554 void PDBLinker::writeSymbolRecord(SectionChunk *debugChunk, in writeSymbolRecord() argument
564 debugChunk->writeAndRelocateSubsection(sectionContents, sym.data(), in writeSymbolRecord()
569 TpiSource *source = debugChunk->file->debugTypesObj; in writeSymbolRecord()
581 SectionChunk *debugChunk, uint32_t &moduleSymOffset, in analyzeSymbolSubsection() argument
584 ObjFile *file = debugChunk->file; in analyzeSymbolSubsection()
589 ArrayRef<uint8_t> sectionContents = debugChunk->getContents(); in analyzeSymbolSubsection()
612 writeSymbolRecord(debugChunk, sectionContents, sym, alignedSize, in analyzeSymbolSubsection()
648 for (SectionChunk *debugChunk : file->getDebugChunks()) { in writeAllModuleSymbolRecords()
649 if (!debugChunk->live || debugChunk->getSize() == 0 || in writeAllModuleSymbolRecords()
650 debugChunk->getSectionName() != ".debug$S") in writeAllModuleSymbolRecords()
653 ArrayRef<uint8_t> sectionContents = debugChunk->getContents(); in writeAllModuleSymbolRecords()
684 writeSymbolRecord(debugChunk, sectionContents, sym, alignedSize, in writeAllModuleSymbolRecords()
753 void DebugSHandler::handleDebugS(SectionChunk *debugChunk) { in handleDebugS() argument
756 ArrayRef<uint8_t> contents = debugChunk->getContents(); in handleDebugS()
761 debugChunk->sortRelocations(); in handleDebugS()
786 addUnrelocatedSubsection(debugChunk, ss); in handleDebugS()
789 addFrameDataSubsection(debugChunk, ss); in handleDebugS()
792 linker.analyzeSymbolSubsection(debugChunk, moduleStreamSize, in handleDebugS()
842 UnrelocatedDebugSubsection(DebugSubsectionKind k, SectionChunk *debugChunk, in UnrelocatedDebugSubsection() argument
844 : DebugSubsection(k), debugChunk(debugChunk), subsec(subsec), in UnrelocatedDebugSubsection()
850 SectionChunk *debugChunk; member in __anona4e0361e0711::UnrelocatedDebugSubsection
859 debugChunk->writeAndRelocateSubsection(debugChunk->getContents(), subsec, in commit()
865 debugChunk->file->debugTypesObj) { in commit()
866 TpiSource *source = debugChunk->file->debugTypesObj; in commit()
873 log("bad inlinee line record in " + debugChunk->file->getName() + in commit()
882 void DebugSHandler::addUnrelocatedSubsection(SectionChunk *debugChunk, in addUnrelocatedSubsection() argument
887 advanceRelocIndex(debugChunk, subsec); in addUnrelocatedSubsection()
889 std::make_shared<UnrelocatedDebugSubsection>(ss.kind(), debugChunk, in addUnrelocatedSubsection()
893 void DebugSHandler::addFrameDataSubsection(SectionChunk *debugChunk, in addFrameDataSubsection() argument
901 advanceRelocIndex(debugChunk, subsec); in addFrameDataSubsection()
902 frameDataSubsecs.push_back({debugChunk, subsec, nextRelocIndex}); in addFrameDataSubsection()
944 SectionChunk *debugChunk = subsec.debugChunk; in finish() local
949 debugChunk->writeAndRelocateSubsection(debugChunk->getContents(), in finish()
1010 static ArrayRef<uint8_t> relocateDebugChunk(SectionChunk &debugChunk) { in relocateDebugChunk() argument
1011 uint8_t *buffer = bAlloc().Allocate<uint8_t>(debugChunk.getSize()); in relocateDebugChunk()
1012 assert(debugChunk.getOutputSectionIdx() == 0 && in relocateDebugChunk()
1014 debugChunk.writeTo(buffer); in relocateDebugChunk()
1015 return makeArrayRef(buffer, debugChunk.getSize()); in relocateDebugChunk()
1028 for (SectionChunk *debugChunk : source->file->getDebugChunks()) { in addDebugSymbols()
1029 if (!debugChunk->live || debugChunk->getSize() == 0) in addDebugSymbols()
1032 bool isDebugS = debugChunk->getSectionName() == ".debug$S"; in addDebugSymbols()
1033 bool isDebugF = debugChunk->getSectionName() == ".debug$F"; in addDebugSymbols()
1038 dsh.handleDebugS(debugChunk); in addDebugSymbols()
1042 relocateDebugChunk(*debugChunk); in addDebugSymbols()