Lines Matching refs:W

66   void printSymbol(const SymbolRef &Symbol, ScopedPrinter &W);
423 DictScope H(W, "MachHeader");
428 W.printHex("Reserved", Obj->getHeader64().reserved);
434 W.printEnum("Magic", Header.magic, ArrayRef(MachOMagics));
435 W.printEnum("CpuType", Header.cputype, ArrayRef(MachOHeaderCpuTypes));
439 W.printEnum("CpuSubType", subtype, ArrayRef(MachOHeaderCpuSubtypesX86));
442 W.printEnum("CpuSubType", subtype, ArrayRef(MachOHeaderCpuSubtypesX64));
445 W.printEnum("CpuSubType", subtype, ArrayRef(MachOHeaderCpuSubtypesARM));
448 W.printEnum("CpuSubType", subtype, ArrayRef(MachOHeaderCpuSubtypesPPC));
451 W.printEnum("CpuSubType", subtype, ArrayRef(MachOHeaderCpuSubtypesSPARC));
454 W.printEnum("CpuSubType", subtype, ArrayRef(MachOHeaderCpuSubtypesARM64));
458 W.printHex("CpuSubtype", subtype);
460 W.printEnum("FileType", Header.filetype, ArrayRef(MachOHeaderFileTypes));
461 W.printNumber("NumOfLoadCommands", Header.ncmds);
462 W.printNumber("SizeOfLoadCommands", Header.sizeofcmds);
463 W.printFlags("Flags", Header.flags, ArrayRef(MachOHeaderFlags));
469 ListScope Group(W, "Sections");
483 DictScope SectionD(W, "Section");
484 W.printNumber("Index", SectionIndex);
485 W.printBinary("Name", Name, RawName);
486 W.printBinary("Segment", SegmentName, RawSegmentName);
487 W.printHex("Address", MOSection.Address);
488 W.printHex("Size", MOSection.Size);
489 W.printNumber("Offset", MOSection.Offset);
490 W.printNumber("Alignment", MOSection.Alignment);
491 W.printHex("RelocationOffset", MOSection.RelocationTableOffset);
492 W.printNumber("RelocationCount", MOSection.NumRelocationTableEntries);
493 W.printEnum("Type", MOSection.Flags & 0xFF, ArrayRef(MachOSectionTypes));
494 W.printFlags("Attributes", MOSection.Flags >> 8,
496 W.printHex("Reserved1", MOSection.Reserved1);
497 W.printHex("Reserved2", MOSection.Reserved2);
499 W.printHex("Reserved3", MOSection.Reserved3);
502 ListScope D(W, "Relocations");
508 ListScope D(W, "Symbols");
518 W.printBinaryBlock("SectionData", unwrapOrError(Obj->getFileName(),
524 ListScope D(W, "Relocations");
532 W.startLine() << "Section " << Name << " {\n";
533 W.indent();
541 W.unindent();
542 W.startLine() << "}\n";
577 DictScope Group(W, "Relocation");
578 W.printHex("Offset", Offset);
579 W.printNumber("PCRel", Obj->getAnyRelocationPCRel(RE));
580 W.printNumber("Length", Obj->getAnyRelocationLength(RE));
581 W.printNumber("Type", RelocName, Obj->getAnyRelocationType(RE));
583 W.printHex("Value", Obj->getScatteredRelocationValue(RE));
586 W.printNumber(Kind, TargetName, Obj->getPlainRelocationSymbolNum(RE));
598 raw_ostream& OS = W.startLine();
599 OS << W.hex(Offset)
640 ListScope Group(W, "Symbols");
656 ListScope Group(W, "DynamicSymbols");
659 ListScope Group(W, "DynamicSymbols");
663 printSymbol(Symbol, W);
666 void MachODumper::printSymbol(const SymbolRef &Symbol, ScopedPrinter &W) {
688 DictScope D(W, "Symbol");
689 W.printNumber("Name", SymbolName, MOSymbol.StringIndex);
691 W.printHex("Type", "SymDebugTable", MOSymbol.Type);
694 W.startLine() << "PrivateExtern\n";
696 W.startLine() << "Extern\n";
697 W.printEnum("Type", uint8_t(MOSymbol.Type & MachO::N_TYPE),
700 W.printHex("Section", SectionName, MOSymbol.SectionIndex);
701 W.printEnum("RefType", static_cast<uint16_t>(MOSymbol.Flags & 0x7),
703 W.printFlags("Flags", static_cast<uint16_t>(MOSymbol.Flags & ~0x7),
705 W.printHex("Value", MOSymbol.Value);
709 W.startLine() << "UnwindInfo not implemented.\n";
737 W, StackMapParser<llvm::endianness::little>(StackMapContentsArray));
740 W, StackMapParser<llvm::endianness::big>(StackMapContentsArray));
766 ListScope L(W, "CGProfile");
776 DictScope D(W, "CGProfileEntry");
777 W.printNumber("From", getSymbolName(*Obj->getSymbolByIndex(FromIndex)),
779 W.printNumber("To", getSymbolName(*Obj->getSymbolByIndex(ToIndex)),
781 W.printNumber("Weight", Count);
786 ListScope D(W, "NeededLibraries");
809 W.startLine() << L << "\n";
817 DictScope Group(W, "DataInCode");
818 W.printNumber("Data offset", LLC.dataoff);
819 W.printNumber("Data size", LLC.datasize);
820 ListScope D(W, "Data entries");
825 DictScope Group(W, "Entry");
826 W.printNumber("Index", i);
827 W.printNumber("Offset", DICE.offset);
828 W.printNumber("Length", DICE.length);
829 W.printNumber("Kind", DICE.kind);
858 DictScope Group(W, "MinVersion");
862 W.printString("Cmd", Cmd);
863 W.printNumber("Size", BVC.cmdsize);
864 W.printString("Platform",
866 W.printString("Version", MachOObjectFile::getVersionString(BVC.minos));
868 W.printString("SDK", MachOObjectFile::getVersionString(BVC.sdk));
870 W.printString("SDK", StringRef("n/a"));
875 W.printString("Cmd", Cmd);
876 W.printNumber("Size", VMC.cmdsize);
883 W.printString("Version", Version);
894 W.printString("SDK", SDK);
902 DictScope Group(W, "Dysymtab");
903 W.printNumber("ilocalsym", DLC.ilocalsym);
904 W.printNumber("nlocalsym", DLC.nlocalsym);
905 W.printNumber("iextdefsym", DLC.iextdefsym);
906 W.printNumber("nextdefsym", DLC.nextdefsym);
907 W.printNumber("iundefsym", DLC.iundefsym);
908 W.printNumber("nundefsym", DLC.nundefsym);
909 W.printNumber("tocoff", DLC.tocoff);
910 W.printNumber("ntoc", DLC.ntoc);
911 W.printNumber("modtaboff", DLC.modtaboff);
912 W.printNumber("nmodtab", DLC.nmodtab);
913 W.printNumber("extrefsymoff", DLC.extrefsymoff);
914 W.printNumber("nextrefsyms", DLC.nextrefsyms);
915 W.printNumber("indirectsymoff", DLC.indirectsymoff);
916 W.printNumber("nindirectsyms", DLC.nindirectsyms);
917 W.printNumber("extreloff", DLC.extreloff);
918 W.printNumber("nextrel", DLC.nextrel);
919 W.printNumber("locreloff", DLC.locreloff);
920 W.printNumber("nlocrel", DLC.nlocrel);
930 DictScope Group(W, "Segment");
931 W.printString("Cmd", MOSegment.CmdName);
932 W.printString("Name", MOSegment.SegName);
933 W.printNumber("Size", MOSegment.cmdsize);
934 W.printHex("vmaddr", MOSegment.vmaddr);
935 W.printHex("vmsize", MOSegment.vmsize);
936 W.printNumber("fileoff", MOSegment.fileoff);
937 W.printNumber("filesize", MOSegment.filesize);
938 W.printString("maxprot", getMask(MOSegment.maxprot));
939 W.printString("initprot", getMask(MOSegment.initprot));
940 W.printNumber("nsects", MOSegment.nsects);
941 W.printHex("flags", MOSegment.flags);
950 DictScope Group(W, "Indirect Symbols");
951 W.printNumber("Number", DLC.nindirectsyms);
952 ListScope D(W, "Symbols");
954 DictScope Group(W, "Entry");
955 W.printNumber("Entry Index", i);
956 W.printHex("Symbol Index", Obj->getIndirectSymbolTableEntry(DLC, i));
966 DictScope Group(W, "Linker Options");
967 W.printNumber("Size", LOLC.cmdsize);
968 ListScope D(W, "Strings");
974 W.printString("Value", Split.first);