Lines Matching refs:debugChunk

115   void analyzeSymbolSubsection(SectionChunk *debugChunk,
132 void writeSymbolRecord(SectionChunk *debugChunk,
175 SectionChunk *debugChunk = nullptr; member
224 void advanceRelocIndex(SectionChunk *debugChunk, ArrayRef<uint8_t> subsec);
226 void addUnrelocatedSubsection(SectionChunk *debugChunk,
229 void addFrameDataSubsection(SectionChunk *debugChunk,
238 void handleDebugS(SectionChunk *debugChunk);
558 void PDBLinker::writeSymbolRecord(SectionChunk *debugChunk, in writeSymbolRecord() argument
568 debugChunk->writeAndRelocateSubsection(sectionContents, sym.data(), in writeSymbolRecord()
573 TpiSource *source = debugChunk->file->debugTypesObj; in writeSymbolRecord()
585 SectionChunk *debugChunk, uint32_t &moduleSymOffset, in analyzeSymbolSubsection() argument
588 ObjFile *file = debugChunk->file; in analyzeSymbolSubsection()
593 ArrayRef<uint8_t> sectionContents = debugChunk->getContents(); in analyzeSymbolSubsection()
616 writeSymbolRecord(debugChunk, sectionContents, sym, alignedSize, in analyzeSymbolSubsection()
653 for (SectionChunk *debugChunk : file->getDebugChunks()) { in writeAllModuleSymbolRecords()
654 if (!debugChunk->live || debugChunk->getSize() == 0 || in writeAllModuleSymbolRecords()
655 debugChunk->getSectionName() != ".debug$S") in writeAllModuleSymbolRecords()
658 ArrayRef<uint8_t> sectionContents = debugChunk->getContents(); in writeAllModuleSymbolRecords()
689 writeSymbolRecord(debugChunk, sectionContents, sym, alignedSize, in writeAllModuleSymbolRecords()
758 void DebugSHandler::handleDebugS(SectionChunk *debugChunk) { in handleDebugS() argument
761 ArrayRef<uint8_t> contents = debugChunk->getContents(); in handleDebugS()
767 debugChunk->sortRelocations(); in handleDebugS()
792 addUnrelocatedSubsection(debugChunk, ss); in handleDebugS()
795 addFrameDataSubsection(debugChunk, ss); in handleDebugS()
798 linker.analyzeSymbolSubsection(debugChunk, moduleStreamSize, in handleDebugS()
848 UnrelocatedDebugSubsection(DebugSubsectionKind k, SectionChunk *debugChunk, in UnrelocatedDebugSubsection() argument
850 : DebugSubsection(k), debugChunk(debugChunk), subsec(subsec), in UnrelocatedDebugSubsection()
856 SectionChunk *debugChunk; member in __anon49229aa50711::UnrelocatedDebugSubsection
865 debugChunk->writeAndRelocateSubsection(debugChunk->getContents(), subsec, in commit()
871 debugChunk->file->debugTypesObj) { in commit()
872 TpiSource *source = debugChunk->file->debugTypesObj; in commit()
880 log("bad inlinee line record in " + debugChunk->file->getName() + in commit()
889 void DebugSHandler::addUnrelocatedSubsection(SectionChunk *debugChunk, in addUnrelocatedSubsection() argument
894 advanceRelocIndex(debugChunk, subsec); in addUnrelocatedSubsection()
896 std::make_shared<UnrelocatedDebugSubsection>(ss.kind(), debugChunk, in addUnrelocatedSubsection()
900 void DebugSHandler::addFrameDataSubsection(SectionChunk *debugChunk, in addFrameDataSubsection() argument
908 advanceRelocIndex(debugChunk, subsec); in addFrameDataSubsection()
909 frameDataSubsecs.push_back({debugChunk, subsec, nextRelocIndex}); in addFrameDataSubsection()
953 SectionChunk *debugChunk = subsec.debugChunk; in finish() local
958 debugChunk->writeAndRelocateSubsection(debugChunk->getContents(), in finish()
1019 static ArrayRef<uint8_t> relocateDebugChunk(SectionChunk &debugChunk) { in relocateDebugChunk() argument
1020 uint8_t *buffer = bAlloc().Allocate<uint8_t>(debugChunk.getSize()); in relocateDebugChunk()
1021 assert(debugChunk.getOutputSectionIdx() == 0 && in relocateDebugChunk()
1023 debugChunk.writeTo(buffer); in relocateDebugChunk()
1024 return ArrayRef(buffer, debugChunk.getSize()); in relocateDebugChunk()
1038 for (SectionChunk *debugChunk : source->file->getDebugChunks()) { in addDebugSymbols()
1039 if (!debugChunk->live || debugChunk->getSize() == 0) in addDebugSymbols()
1042 bool isDebugS = debugChunk->getSectionName() == ".debug$S"; in addDebugSymbols()
1043 bool isDebugF = debugChunk->getSectionName() == ".debug$F"; in addDebugSymbols()
1048 dsh.handleDebugS(debugChunk); in addDebugSymbols()
1052 relocateDebugChunk(*debugChunk); in addDebugSymbols()