Lines Matching refs:W
319 DictScope H(W, "MachHeader"); in printFileHeaders()
324 W.printHex("Reserved", Obj->getHeader64().reserved); in printFileHeaders()
330 W.printEnum("Magic", Header.magic, makeArrayRef(MachOMagics)); in printFileHeaders()
331 W.printEnum("CpuType", Header.cputype, makeArrayRef(MachOHeaderCpuTypes)); in printFileHeaders()
335 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesX86)); in printFileHeaders()
338 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesX64)); in printFileHeaders()
341 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesARM)); in printFileHeaders()
344 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesPPC)); in printFileHeaders()
347 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesSPARC)); in printFileHeaders()
350 W.printEnum("CpuSubType", subtype, makeArrayRef(MachOHeaderCpuSubtypesARM64)); in printFileHeaders()
354 W.printHex("CpuSubtype", subtype); in printFileHeaders()
356 W.printEnum("FileType", Header.filetype, makeArrayRef(MachOHeaderFileTypes)); in printFileHeaders()
357 W.printNumber("NumOfLoadCommands", Header.ncmds); in printFileHeaders()
358 W.printNumber("SizeOfLoadCommands", Header.sizeofcmds); in printFileHeaders()
359 W.printFlags("Flags", Header.flags, makeArrayRef(MachOHeaderFlags)); in printFileHeaders()
367 ListScope Group(W, "Sections"); in printSections()
385 DictScope SectionD(W, "Section"); in printSections()
386 W.printNumber("Index", SectionIndex); in printSections()
387 W.printBinary("Name", Name, RawName); in printSections()
388 W.printBinary("Segment", SegmentName, RawSegmentName); in printSections()
389 W.printHex("Address", MOSection.Address); in printSections()
390 W.printHex("Size", MOSection.Size); in printSections()
391 W.printNumber("Offset", MOSection.Offset); in printSections()
392 W.printNumber("Alignment", MOSection.Alignment); in printSections()
393 W.printHex("RelocationOffset", MOSection.RelocationTableOffset); in printSections()
394 W.printNumber("RelocationCount", MOSection.NumRelocationTableEntries); in printSections()
395 W.printEnum("Type", MOSection.Flags & 0xFF, in printSections()
397 W.printFlags("Attributes", MOSection.Flags >> 8, in printSections()
399 W.printHex("Reserved1", MOSection.Reserved1); in printSections()
400 W.printHex("Reserved2", MOSection.Reserved2); in printSections()
403 ListScope D(W, "Relocations"); in printSections()
409 ListScope D(W, "Symbols"); in printSections()
425 W.printBinaryBlock("SectionData", Data); in printSections()
432 ListScope D(W, "Relocations"); in printRelocations()
443 W.startLine() << "Section " << Name << " {\n"; in printRelocations()
444 W.indent(); in printRelocations()
452 W.unindent(); in printRelocations()
453 W.startLine() << "}\n"; in printRelocations()
493 DictScope Group(W, "Relocation"); in printRelocation()
494 W.printHex("Offset", Offset); in printRelocation()
495 W.printNumber("PCRel", Obj->getAnyRelocationPCRel(RE)); in printRelocation()
496 W.printNumber("Length", Obj->getAnyRelocationLength(RE)); in printRelocation()
497 W.printNumber("Type", RelocName, Obj->getAnyRelocationType(RE)); in printRelocation()
499 W.printHex("Value", Obj->getScatteredRelocationValue(RE)); in printRelocation()
502 W.printNumber(Kind, TargetName, Obj->getPlainRelocationSymbolNum(RE)); in printRelocation()
514 raw_ostream& OS = W.startLine(); in printRelocation()
515 OS << W.hex(Offset) in printRelocation()
530 ListScope Group(W, "Symbols"); in printSymbols()
538 ListScope Group(W, "DynamicSymbols"); in printDynamicSymbols()
554 DictScope D(W, "Symbol"); in printSymbol()
555 W.printNumber("Name", SymbolName, MOSymbol.StringIndex); in printSymbol()
557 W.printHex("Type", "SymDebugTable", MOSymbol.Type); in printSymbol()
560 W.startLine() << "PrivateExtern\n"; in printSymbol()
562 W.startLine() << "Extern\n"; in printSymbol()
563 W.printEnum("Type", uint8_t(MOSymbol.Type & MachO::N_TYPE), in printSymbol()
566 W.printHex("Section", SectionName, MOSymbol.SectionIndex); in printSymbol()
567 W.printEnum("RefType", static_cast<uint16_t>(MOSymbol.Flags & 0xF), in printSymbol()
569 W.printFlags("Flags", static_cast<uint16_t>(MOSymbol.Flags & ~0xF), in printSymbol()
571 W.printHex("Value", MOSymbol.Value); in printSymbol()
575 W.startLine() << "UnwindInfo not implemented.\n"; in printUnwindInfo()