Lines Matching refs:W
386 DictScope H(W, "MachHeader"); in printFileHeaders()
391 W.printHex("Reserved", Obj->getHeader64().reserved); in printFileHeaders()
397 W.printEnum("Magic", Header.magic, makeArrayRef(MachOMagics)); in printFileHeaders()
398 W.printEnum("CpuType", Header.cputype, makeArrayRef(MachOHeaderCpuTypes)); in printFileHeaders()
402 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesX86)); in printFileHeaders()
405 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesX64)); in printFileHeaders()
408 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesARM)); in printFileHeaders()
411 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesPPC)); in printFileHeaders()
414 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesSPARC)); in printFileHeaders()
417 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesARM64)); in printFileHeaders()
421 W.printHex("CpuSubtype", subtype); in printFileHeaders()
423 W.printEnum("FileType", Header.filetype, makeArrayRef(MachOHeaderFileTypes)); in printFileHeaders()
424 W.printNumber("NumOfLoadCommands", Header.ncmds); in printFileHeaders()
425 W.printNumber("SizeOfLoadCommands", Header.sizeofcmds); in printFileHeaders()
426 W.printFlags("Flags", Header.flags, makeArrayRef(MachOHeaderFlags)); in printFileHeaders()
434 ListScope Group(W, "Sections"); in printSections()
451 DictScope SectionD(W, "Section"); in printSections()
452 W.printNumber("Index", SectionIndex); in printSections()
453 W.printBinary("Name", Name, RawName); in printSections()
454 W.printBinary("Segment", SegmentName, RawSegmentName); in printSections()
455 W.printHex("Address", MOSection.Address); in printSections()
456 W.printHex("Size", MOSection.Size); in printSections()
457 W.printNumber("Offset", MOSection.Offset); in printSections()
458 W.printNumber("Alignment", MOSection.Alignment); in printSections()
459 W.printHex("RelocationOffset", MOSection.RelocationTableOffset); in printSections()
460 W.printNumber("RelocationCount", MOSection.NumRelocationTableEntries); in printSections()
461 W.printEnum("Type", MOSection.Flags & 0xFF, in printSections()
463 W.printFlags("Attributes", MOSection.Flags >> 8, in printSections()
465 W.printHex("Reserved1", MOSection.Reserved1); in printSections()
466 W.printHex("Reserved2", MOSection.Reserved2); in printSections()
468 W.printHex("Reserved3", MOSection.Reserved3); in printSections()
471 ListScope D(W, "Relocations"); in printSections()
477 ListScope D(W, "Symbols"); in printSections()
492 W.printBinaryBlock("SectionData", Data); in printSections()
499 ListScope D(W, "Relocations"); in printRelocations()
509 W.startLine() << "Section " << Name << " {\n"; in printRelocations()
510 W.indent(); in printRelocations()
518 W.unindent(); in printRelocations()
519 W.startLine() << "}\n"; in printRelocations()
558 DictScope Group(W, "Relocation"); in printRelocation()
559 W.printHex("Offset", Offset); in printRelocation()
560 W.printNumber("PCRel", Obj->getAnyRelocationPCRel(RE)); in printRelocation()
561 W.printNumber("Length", Obj->getAnyRelocationLength(RE)); in printRelocation()
562 W.printNumber("Type", RelocName, Obj->getAnyRelocationType(RE)); in printRelocation()
564 W.printHex("Value", Obj->getScatteredRelocationValue(RE)); in printRelocation()
567 W.printNumber(Kind, TargetName, Obj->getPlainRelocationSymbolNum(RE)); in printRelocation()
579 raw_ostream& OS = W.startLine(); in printRelocation()
580 OS << W.hex(Offset) in printRelocation()
595 ListScope Group(W, "Symbols"); in printSymbols()
603 ListScope Group(W, "DynamicSymbols"); in printDynamicSymbols()
625 DictScope D(W, "Symbol"); in printSymbol()
626 W.printNumber("Name", SymbolName, MOSymbol.StringIndex); in printSymbol()
628 W.printHex("Type", "SymDebugTable", MOSymbol.Type); in printSymbol()
631 W.startLine() << "PrivateExtern\n"; in printSymbol()
633 W.startLine() << "Extern\n"; in printSymbol()
634 W.printEnum("Type", uint8_t(MOSymbol.Type & MachO::N_TYPE), in printSymbol()
637 W.printHex("Section", SectionName, MOSymbol.SectionIndex); in printSymbol()
638 W.printEnum("RefType", static_cast<uint16_t>(MOSymbol.Flags & 0xF), in printSymbol()
640 W.printFlags("Flags", static_cast<uint16_t>(MOSymbol.Flags & ~0xF), in printSymbol()
642 W.printHex("Value", MOSymbol.Value); in printSymbol()
646 W.startLine() << "UnwindInfo not implemented.\n"; in printUnwindInfo()
682 DictScope Group(W, "DataInCode"); in printMachODataInCode()
683 W.printNumber("Data offset", LLC.dataoff); in printMachODataInCode()
684 W.printNumber("Data size", LLC.datasize); in printMachODataInCode()
685 ListScope D(W, "Data entries"); in printMachODataInCode()
690 DictScope Group(W, "Entry"); in printMachODataInCode()
691 W.printNumber("Index", i); in printMachODataInCode()
692 W.printNumber("Offset", DICE.offset); in printMachODataInCode()
693 W.printNumber("Length", DICE.length); in printMachODataInCode()
694 W.printNumber("Kind", DICE.kind); in printMachODataInCode()
721 DictScope Group(W, "MinVersion"); in printMachOVersionMin()
722 W.printString("Cmd", Cmd); in printMachOVersionMin()
723 W.printNumber("Size", VMC.cmdsize); in printMachOVersionMin()
730 W.printString("Version", Version); in printMachOVersionMin()
741 W.printString("SDK", SDK); in printMachOVersionMin()
749 DictScope Group(W, "Dysymtab"); in printMachODysymtab()
750 W.printNumber("ilocalsym", DLC.ilocalsym); in printMachODysymtab()
751 W.printNumber("nlocalsym", DLC.nlocalsym); in printMachODysymtab()
752 W.printNumber("iextdefsym", DLC.iextdefsym); in printMachODysymtab()
753 W.printNumber("nextdefsym", DLC.nextdefsym); in printMachODysymtab()
754 W.printNumber("iundefsym", DLC.iundefsym); in printMachODysymtab()
755 W.printNumber("nundefsym", DLC.nundefsym); in printMachODysymtab()
756 W.printNumber("tocoff", DLC.tocoff); in printMachODysymtab()
757 W.printNumber("ntoc", DLC.ntoc); in printMachODysymtab()
758 W.printNumber("modtaboff", DLC.modtaboff); in printMachODysymtab()
759 W.printNumber("nmodtab", DLC.nmodtab); in printMachODysymtab()
760 W.printNumber("extrefsymoff", DLC.extrefsymoff); in printMachODysymtab()
761 W.printNumber("nextrefsyms", DLC.nextrefsyms); in printMachODysymtab()
762 W.printNumber("indirectsymoff", DLC.indirectsymoff); in printMachODysymtab()
763 W.printNumber("nindirectsyms", DLC.nindirectsyms); in printMachODysymtab()
764 W.printNumber("extreloff", DLC.extreloff); in printMachODysymtab()
765 W.printNumber("nextrel", DLC.nextrel); in printMachODysymtab()
766 W.printNumber("locreloff", DLC.locreloff); in printMachODysymtab()
767 W.printNumber("nlocrel", DLC.nlocrel); in printMachODysymtab()
777 DictScope Group(W, "Segment"); in printMachOSegment()
778 W.printString("Cmd", MOSegment.CmdName); in printMachOSegment()
779 W.printString("Name", MOSegment.SegName); in printMachOSegment()
780 W.printNumber("Size", MOSegment.cmdsize); in printMachOSegment()
781 W.printHex("vmaddr", MOSegment.vmaddr); in printMachOSegment()
782 W.printHex("vmsize", MOSegment.vmsize); in printMachOSegment()
783 W.printNumber("fileoff", MOSegment.fileoff); in printMachOSegment()
784 W.printNumber("filesize", MOSegment.filesize); in printMachOSegment()
785 W.printString("maxprot", getMask(MOSegment.maxprot)); in printMachOSegment()
786 W.printString("initprot", getMask(MOSegment.initprot)); in printMachOSegment()
787 W.printNumber("nsects", MOSegment.nsects); in printMachOSegment()
788 W.printHex("flags", MOSegment.flags); in printMachOSegment()
797 DictScope Group(W, "Indirect Symbols"); in printMachOIndirectSymbols()
798 W.printNumber("Number", DLC.nindirectsyms); in printMachOIndirectSymbols()
799 ListScope D(W, "Symbols"); in printMachOIndirectSymbols()
801 DictScope Group(W, "Entry"); in printMachOIndirectSymbols()
802 W.printNumber("Entry Index", i); in printMachOIndirectSymbols()
803 W.printHex("Symbol Index", Obj->getIndirectSymbolTableEntry(DLC, i)); in printMachOIndirectSymbols()
813 DictScope Group(W, "Linker Options"); in printMachOLinkerOptions()
814 W.printNumber("Size", LOLC.cmdsize); in printMachOLinkerOptions()
815 ListScope D(W, "Strings"); in printMachOLinkerOptions()
821 W.printString("Value", Split.first); in printMachOLinkerOptions()