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()
557 DictScope Group(W, "Relocation"); in printRelocation()
558 W.printHex("Offset", Offset); in printRelocation()
559 W.printNumber("PCRel", Obj->getAnyRelocationPCRel(RE)); in printRelocation()
560 W.printNumber("Length", Obj->getAnyRelocationLength(RE)); in printRelocation()
561 W.printNumber("Type", RelocName, Obj->getAnyRelocationType(RE)); in printRelocation()
563 W.printHex("Value", Obj->getScatteredRelocationValue(RE)); in printRelocation()
566 W.printNumber(Kind, TargetName, Obj->getPlainRelocationSymbolNum(RE)); in printRelocation()
578 raw_ostream& OS = W.startLine(); in printRelocation()
579 OS << W.hex(Offset) in printRelocation()
594 ListScope Group(W, "Symbols"); in printSymbols()
602 ListScope Group(W, "DynamicSymbols"); in printDynamicSymbols()
620 DictScope D(W, "Symbol"); in printSymbol()
621 W.printNumber("Name", SymbolName, MOSymbol.StringIndex); in printSymbol()
623 W.printHex("Type", "SymDebugTable", MOSymbol.Type); in printSymbol()
626 W.startLine() << "PrivateExtern\n"; in printSymbol()
628 W.startLine() << "Extern\n"; in printSymbol()
629 W.printEnum("Type", uint8_t(MOSymbol.Type & MachO::N_TYPE), in printSymbol()
632 W.printHex("Section", SectionName, MOSymbol.SectionIndex); in printSymbol()
633 W.printEnum("RefType", static_cast<uint16_t>(MOSymbol.Flags & 0xF), in printSymbol()
635 W.printFlags("Flags", static_cast<uint16_t>(MOSymbol.Flags & ~0xF), in printSymbol()
637 W.printHex("Value", MOSymbol.Value); in printSymbol()
641 W.startLine() << "UnwindInfo not implemented.\n"; in printUnwindInfo()
677 DictScope Group(W, "DataInCode"); in printMachODataInCode()
678 W.printNumber("Data offset", LLC.dataoff); in printMachODataInCode()
679 W.printNumber("Data size", LLC.datasize); in printMachODataInCode()
680 ListScope D(W, "Data entries"); in printMachODataInCode()
685 DictScope Group(W, "Entry"); in printMachODataInCode()
686 W.printNumber("Index", i); in printMachODataInCode()
687 W.printNumber("Offset", DICE.offset); in printMachODataInCode()
688 W.printNumber("Length", DICE.length); in printMachODataInCode()
689 W.printNumber("Kind", DICE.kind); in printMachODataInCode()
716 DictScope Group(W, "MinVersion"); in printMachOVersionMin()
717 W.printString("Cmd", Cmd); in printMachOVersionMin()
718 W.printNumber("Size", VMC.cmdsize); in printMachOVersionMin()
725 W.printString("Version", Version); in printMachOVersionMin()
736 W.printString("SDK", SDK); in printMachOVersionMin()
744 DictScope Group(W, "Dysymtab"); in printMachODysymtab()
745 W.printNumber("ilocalsym", DLC.ilocalsym); in printMachODysymtab()
746 W.printNumber("nlocalsym", DLC.nlocalsym); in printMachODysymtab()
747 W.printNumber("iextdefsym", DLC.iextdefsym); in printMachODysymtab()
748 W.printNumber("nextdefsym", DLC.nextdefsym); in printMachODysymtab()
749 W.printNumber("iundefsym", DLC.iundefsym); in printMachODysymtab()
750 W.printNumber("nundefsym", DLC.nundefsym); in printMachODysymtab()
751 W.printNumber("tocoff", DLC.tocoff); in printMachODysymtab()
752 W.printNumber("ntoc", DLC.ntoc); in printMachODysymtab()
753 W.printNumber("modtaboff", DLC.modtaboff); in printMachODysymtab()
754 W.printNumber("nmodtab", DLC.nmodtab); in printMachODysymtab()
755 W.printNumber("extrefsymoff", DLC.extrefsymoff); in printMachODysymtab()
756 W.printNumber("nextrefsyms", DLC.nextrefsyms); in printMachODysymtab()
757 W.printNumber("indirectsymoff", DLC.indirectsymoff); in printMachODysymtab()
758 W.printNumber("nindirectsyms", DLC.nindirectsyms); in printMachODysymtab()
759 W.printNumber("extreloff", DLC.extreloff); in printMachODysymtab()
760 W.printNumber("nextrel", DLC.nextrel); in printMachODysymtab()
761 W.printNumber("locreloff", DLC.locreloff); in printMachODysymtab()
762 W.printNumber("nlocrel", DLC.nlocrel); in printMachODysymtab()
772 DictScope Group(W, "Segment"); in printMachOSegment()
773 W.printString("Cmd", MOSegment.CmdName); in printMachOSegment()
774 W.printString("Name", MOSegment.SegName); in printMachOSegment()
775 W.printNumber("Size", MOSegment.cmdsize); in printMachOSegment()
776 W.printHex("vmaddr", MOSegment.vmaddr); in printMachOSegment()
777 W.printHex("vmsize", MOSegment.vmsize); in printMachOSegment()
778 W.printNumber("fileoff", MOSegment.fileoff); in printMachOSegment()
779 W.printNumber("filesize", MOSegment.filesize); in printMachOSegment()
780 W.printString("maxprot", getMask(MOSegment.maxprot)); in printMachOSegment()
781 W.printString("initprot", getMask(MOSegment.initprot)); in printMachOSegment()
782 W.printNumber("nsects", MOSegment.nsects); in printMachOSegment()
783 W.printHex("flags", MOSegment.flags); in printMachOSegment()
792 DictScope Group(W, "Indirect Symbols"); in printMachOIndirectSymbols()
793 W.printNumber("Number", DLC.nindirectsyms); in printMachOIndirectSymbols()
794 ListScope D(W, "Symbols"); in printMachOIndirectSymbols()
796 DictScope Group(W, "Entry"); in printMachOIndirectSymbols()
797 W.printNumber("Entry Index", i); in printMachOIndirectSymbols()
798 W.printHex("Symbol Index", Obj->getIndirectSymbolTableEntry(DLC, i)); in printMachOIndirectSymbols()
808 DictScope Group(W, "Linker Options"); in printMachOLinkerOptions()
809 W.printNumber("Size", LOLC.cmdsize); in printMachOLinkerOptions()
810 ListScope D(W, "Strings"); in printMachOLinkerOptions()
816 W.printString("Value", Split.first); in printMachOLinkerOptions()