Lines Matching refs:Sec
40 template <typename T> void printGenericSectionHeader(T &Sec) const;
41 template <typename T> void printOverflowSectionHeader(T &Sec) const;
130 for (const auto &Sec : Sections) { in printRelocations() local
133 if (Sec.Flags != XCOFF::STYP_TEXT && Sec.Flags != XCOFF::STYP_DATA && in printRelocations()
134 Sec.Flags != XCOFF::STYP_TDATA && Sec.Flags != XCOFF::STYP_DWARF) in printRelocations()
136 auto Relocations = unwrapOrError(Obj.getFileName(), Obj.relocations(Sec)); in printRelocations()
140 W.startLine() << "Section (index: " << Index << ") " << Sec.getName() in printRelocations()
443 void XCOFFDumper::printOverflowSectionHeader(T &Sec) const { in printOverflowSectionHeader()
451 W.printString("Name", Sec.getName()); in printOverflowSectionHeader()
452 W.printNumber("NumberOfRelocations", Sec.PhysicalAddress); in printOverflowSectionHeader()
453 W.printNumber("NumberOfLineNumbers", Sec.VirtualAddress); in printOverflowSectionHeader()
454 W.printHex("Size", Sec.SectionSize); in printOverflowSectionHeader()
455 W.printHex("RawDataOffset", Sec.FileOffsetToRawData); in printOverflowSectionHeader()
456 W.printHex("RelocationPointer", Sec.FileOffsetToRelocationInfo); in printOverflowSectionHeader()
457 W.printHex("LineNumberPointer", Sec.FileOffsetToLineNumberInfo); in printOverflowSectionHeader()
458 W.printNumber("IndexOfSectionOverflowed", Sec.NumberOfRelocations); in printOverflowSectionHeader()
459 W.printNumber("IndexOfSectionOverflowed", Sec.NumberOfLineNumbers); in printOverflowSectionHeader()
463 void XCOFFDumper::printGenericSectionHeader(T &Sec) const { in printGenericSectionHeader()
464 W.printString("Name", Sec.getName()); in printGenericSectionHeader()
465 W.printHex("PhysicalAddress", Sec.PhysicalAddress); in printGenericSectionHeader()
466 W.printHex("VirtualAddress", Sec.VirtualAddress); in printGenericSectionHeader()
467 W.printHex("Size", Sec.SectionSize); in printGenericSectionHeader()
468 W.printHex("RawDataOffset", Sec.FileOffsetToRawData); in printGenericSectionHeader()
469 W.printHex("RelocationPointer", Sec.FileOffsetToRelocationInfo); in printGenericSectionHeader()
470 W.printHex("LineNumberPointer", Sec.FileOffsetToLineNumberInfo); in printGenericSectionHeader()
471 W.printNumber("NumberOfRelocations", Sec.NumberOfRelocations); in printGenericSectionHeader()
472 W.printNumber("NumberOfLineNumbers", Sec.NumberOfLineNumbers); in printGenericSectionHeader()
480 for (const T &Sec : Sections) { in printSectionHeaders() local
484 uint16_t SectionType = Sec.getSectionType(); in printSectionHeaders()
487 printOverflowSectionHeader(Sec); in printSectionHeaders()
497 printGenericSectionHeader(Sec); in printSectionHeaders()
500 if (Sec.isReservedSectionType()) in printSectionHeaders()