Lines Matching refs:W
258 W.printSymbolOffset(Label, Symbol, Offset); in printRelocatedField()
260 W.printHex(Label, RelocOffset); in printRelocatedField()
267 W.printBinaryBlock(Label, Block); in printBinaryBlockWithRelocs()
275 W.flush(); in printBinaryBlockWithRelocs()
277 ListScope D(W, "BlockRelocations"); in printBinaryBlockWithRelocs()
550 W.printHex(FieldName + "RVA", Data->RelativeVirtualAddress); in printDataDirectory()
551 W.printHex(FieldName + "Size", Data->Size); in printDataDirectory()
560 DictScope D(W, "ImageFileHeader"); in printFileHeaders()
561 W.printEnum ("Machine", Obj->getMachine(), in printFileHeaders()
563 W.printNumber("SectionCount", Obj->getNumberOfSections()); in printFileHeaders()
564 W.printHex ("TimeDateStamp", FormattedTime, Obj->getTimeDateStamp()); in printFileHeaders()
565 W.printHex ("PointerToSymbolTable", Obj->getPointerToSymbolTable()); in printFileHeaders()
566 W.printNumber("SymbolCount", Obj->getNumberOfSymbols()); in printFileHeaders()
567 W.printNumber("OptionalHeaderSize", Obj->getSizeOfOptionalHeader()); in printFileHeaders()
568 W.printFlags ("Characteristics", Obj->getCharacteristics(), in printFileHeaders()
589 DictScope D(W, "DOSHeader"); in printDOSHeader()
590 W.printString("Magic", StringRef(DH->Magic, sizeof(DH->Magic))); in printDOSHeader()
591 W.printNumber("UsedBytesInTheLastPage", DH->UsedBytesInTheLastPage); in printDOSHeader()
592 W.printNumber("FileSizeInPages", DH->FileSizeInPages); in printDOSHeader()
593 W.printNumber("NumberOfRelocationItems", DH->NumberOfRelocationItems); in printDOSHeader()
594 W.printNumber("HeaderSizeInParagraphs", DH->HeaderSizeInParagraphs); in printDOSHeader()
595 W.printNumber("MinimumExtraParagraphs", DH->MinimumExtraParagraphs); in printDOSHeader()
596 W.printNumber("MaximumExtraParagraphs", DH->MaximumExtraParagraphs); in printDOSHeader()
597 W.printNumber("InitialRelativeSS", DH->InitialRelativeSS); in printDOSHeader()
598 W.printNumber("InitialSP", DH->InitialSP); in printDOSHeader()
599 W.printNumber("Checksum", DH->Checksum); in printDOSHeader()
600 W.printNumber("InitialIP", DH->InitialIP); in printDOSHeader()
601 W.printNumber("InitialRelativeCS", DH->InitialRelativeCS); in printDOSHeader()
602 W.printNumber("AddressOfRelocationTable", DH->AddressOfRelocationTable); in printDOSHeader()
603 W.printNumber("OverlayNumber", DH->OverlayNumber); in printDOSHeader()
604 W.printNumber("OEMid", DH->OEMid); in printDOSHeader()
605 W.printNumber("OEMinfo", DH->OEMinfo); in printDOSHeader()
606 W.printNumber("AddressOfNewExeHeader", DH->AddressOfNewExeHeader); in printDOSHeader()
611 DictScope D(W, "ImageOptionalHeader"); in printPEHeader()
612 W.printNumber("MajorLinkerVersion", Hdr->MajorLinkerVersion); in printPEHeader()
613 W.printNumber("MinorLinkerVersion", Hdr->MinorLinkerVersion); in printPEHeader()
614 W.printNumber("SizeOfCode", Hdr->SizeOfCode); in printPEHeader()
615 W.printNumber("SizeOfInitializedData", Hdr->SizeOfInitializedData); in printPEHeader()
616 W.printNumber("SizeOfUninitializedData", Hdr->SizeOfUninitializedData); in printPEHeader()
617 W.printHex ("AddressOfEntryPoint", Hdr->AddressOfEntryPoint); in printPEHeader()
618 W.printHex ("BaseOfCode", Hdr->BaseOfCode); in printPEHeader()
620 W.printHex ("ImageBase", Hdr->ImageBase); in printPEHeader()
621 W.printNumber("SectionAlignment", Hdr->SectionAlignment); in printPEHeader()
622 W.printNumber("FileAlignment", Hdr->FileAlignment); in printPEHeader()
623 W.printNumber("MajorOperatingSystemVersion", in printPEHeader()
625 W.printNumber("MinorOperatingSystemVersion", in printPEHeader()
627 W.printNumber("MajorImageVersion", Hdr->MajorImageVersion); in printPEHeader()
628 W.printNumber("MinorImageVersion", Hdr->MinorImageVersion); in printPEHeader()
629 W.printNumber("MajorSubsystemVersion", Hdr->MajorSubsystemVersion); in printPEHeader()
630 W.printNumber("MinorSubsystemVersion", Hdr->MinorSubsystemVersion); in printPEHeader()
631 W.printNumber("SizeOfImage", Hdr->SizeOfImage); in printPEHeader()
632 W.printNumber("SizeOfHeaders", Hdr->SizeOfHeaders); in printPEHeader()
633 W.printEnum ("Subsystem", Hdr->Subsystem, makeArrayRef(PEWindowsSubsystem)); in printPEHeader()
634 W.printFlags ("Characteristics", Hdr->DLLCharacteristics, in printPEHeader()
636 W.printNumber("SizeOfStackReserve", Hdr->SizeOfStackReserve); in printPEHeader()
637 W.printNumber("SizeOfStackCommit", Hdr->SizeOfStackCommit); in printPEHeader()
638 W.printNumber("SizeOfHeapReserve", Hdr->SizeOfHeapReserve); in printPEHeader()
639 W.printNumber("SizeOfHeapCommit", Hdr->SizeOfHeapCommit); in printPEHeader()
640 W.printNumber("NumberOfRvaAndSize", Hdr->NumberOfRvaAndSize); in printPEHeader()
643 DictScope D(W, "DataDirectory"); in printPEHeader()
657 ListScope LS(W, "DebugDirectory"); in printCOFFDebugDirectory()
662 DictScope S(W, "DebugEntry"); in printCOFFDebugDirectory()
663 W.printHex("Characteristics", D.Characteristics); in printCOFFDebugDirectory()
664 W.printHex("TimeDateStamp", FormattedTime, D.TimeDateStamp); in printCOFFDebugDirectory()
665 W.printHex("MajorVersion", D.MajorVersion); in printCOFFDebugDirectory()
666 W.printHex("MinorVersion", D.MinorVersion); in printCOFFDebugDirectory()
667 W.printEnum("Type", D.Type, makeArrayRef(ImageDebugType)); in printCOFFDebugDirectory()
668 W.printHex("SizeOfData", D.SizeOfData); in printCOFFDebugDirectory()
669 W.printHex("AddressOfRawData", D.AddressOfRawData); in printCOFFDebugDirectory()
670 W.printHex("PointerToRawData", D.PointerToRawData); in printCOFFDebugDirectory()
675 DictScope PDBScope(W, "PDBInfo"); in printCOFFDebugDirectory()
676 W.printHex("PDBSignature", PDBInfo->Signature); in printCOFFDebugDirectory()
677 W.printBinary("PDBGUID", makeArrayRef(PDBInfo->Guid)); in printCOFFDebugDirectory()
678 W.printNumber("PDBAge", PDBInfo->Age); in printCOFFDebugDirectory()
679 W.printString("PDBFileName", PDBFileName); in printCOFFDebugDirectory()
686 W.printBinaryBlock("RawData", RawData); in printCOFFDebugDirectory()
692 W.printHex("BaseOfData", Hdr->BaseOfData); in printBaseOfDataField()
749 ListScope D(W, "CodeViewDebugInfo"); in printCodeViewSymbolSection()
751 W.printNumber("Section", SectionName, Obj->getSectionID(Section)); in printCodeViewSymbolSection()
755 W.printHex("Magic", Magic); in printCodeViewSymbolSection()
769 ListScope S(W, "Subsection"); in printCodeViewSymbolSection()
770 W.printEnum("SubSectionType", SubType, makeArrayRef(SubSectionTypes)); in printCodeViewSymbolSection()
771 W.printHex("SubSectionSize", SubSectionSize); in printCodeViewSymbolSection()
821 W.printString("LinkageName", LinkageName); in printCodeViewSymbolSection()
839 W.printString("LinkageName", LinkageName); in printCodeViewSymbolSection()
853 DictScope S(W, "FrameData"); in printCodeViewSymbolSection()
854 W.printHex("RvaStart", FD->RvaStart); in printCodeViewSymbolSection()
855 W.printHex("CodeSize", FD->CodeSize); in printCodeViewSymbolSection()
856 W.printHex("LocalSize", FD->LocalSize); in printCodeViewSymbolSection()
857 W.printHex("ParamsSize", FD->ParamsSize); in printCodeViewSymbolSection()
858 W.printHex("MaxStackSize", FD->MaxStackSize); in printCodeViewSymbolSection()
859 W.printString("FrameFunc", FrameFunc); in printCodeViewSymbolSection()
860 W.printHex("PrologSize", FD->PrologSize); in printCodeViewSymbolSection()
861 W.printHex("SavedRegsSize", FD->SavedRegsSize); in printCodeViewSymbolSection()
862 W.printFlags("Flags", FD->Flags, makeArrayRef(FrameDataFlags)); in printCodeViewSymbolSection()
871 W.flush(); in printCodeViewSymbolSection()
878 ListScope S(W, "FunctionLineTable"); in printCodeViewSymbolSection()
879 W.printString("LinkageName", Name); in printCodeViewSymbolSection()
884 W.printHex("Flags", Flags); in printCodeViewSymbolSection()
887 W.printHex("CodeSize", FunctionSize); in printCodeViewSymbolSection()
905 ListScope S(W, "FilenameSegment"); in printCodeViewSymbolSection()
918 ListScope PCScope(W, Buffer); in printCodeViewSymbolSection()
921 W.printString("StepInto", StringRef("Always")); in printCodeViewSymbolSection()
923 W.printString("StepInto", StringRef("Never")); in printCodeViewSymbolSection()
925 W.printNumber("LineNumberStart", LI.getStartLine()); in printCodeViewSymbolSection()
926 W.printNumber("LineNumberEndDelta", LI.getLineDelta()); in printCodeViewSymbolSection()
927 W.printBoolean("IsStatement", LI.isStatement()); in printCodeViewSymbolSection()
931 W.printNumber("ColStart", ColStart); in printCodeViewSymbolSection()
933 W.printNumber("ColEnd", ColEnd); in printCodeViewSymbolSection()
955 CVSymbolDumper CVSD(W, CVTD, std::move(CODD), opts::CodeViewSubsectionBytes); in printCodeViewSymbolsSubsection()
961 W.flush(); in printCodeViewSymbolsSubsection()
966 W.flush(); in printCodeViewSymbolsSubsection()
969 W.flush(); in printCodeViewSymbolsSubsection()
975 DictScope S(W, "FileChecksum"); in printCodeViewFileChecksums()
982 W.printHex("Filename", Filename, FC->FileNameOffset); in printCodeViewFileChecksums()
983 W.printHex("ChecksumSize", FC->ChecksumSize); in printCodeViewFileChecksums()
984 W.printEnum("ChecksumKind", uint8_t(FC->ChecksumKind), in printCodeViewFileChecksums()
989 W.printBinary("ChecksumBytes", ChecksumBytes); in printCodeViewFileChecksums()
1007 DictScope S(W, "InlineeSourceLine"); in printCodeViewInlineeLines()
1010 W.printNumber("SourceLineNum", ISL->SourceLineNum); in printCodeViewInlineeLines()
1015 W.printNumber("ExtraFileCount", ExtraFileCount); in printCodeViewInlineeLines()
1016 ListScope ExtraFiles(W, "ExtraFiles"); in printCodeViewInlineeLines()
1048 W.printHex(Label, getFileNameForFileOffset(FileOffset), FileOffset); in printFileNameForOffset()
1069 W.flush(); in mergeCodeViewTypes()
1081 ListScope D(W, "CodeViewTypes"); in printCodeViewTypeSection()
1082 W.printNumber("Section", SectionName, Obj->getSectionID(Section)); in printCodeViewTypeSection()
1087 W.printBinaryBlock("Data", Data); in printCodeViewTypeSection()
1091 W.printHex("Magic", Magic); in printCodeViewTypeSection()
1096 W.flush(); in printCodeViewTypeSection()
1102 ListScope SectionsD(W, "Sections"); in printSections()
1111 DictScope D(W, "Section"); in printSections()
1112 W.printNumber("Number", SectionNumber); in printSections()
1113 W.printBinary("Name", Name, Section->Name); in printSections()
1114 W.printHex ("VirtualSize", Section->VirtualSize); in printSections()
1115 W.printHex ("VirtualAddress", Section->VirtualAddress); in printSections()
1116 W.printNumber("RawDataSize", Section->SizeOfRawData); in printSections()
1117 W.printHex ("PointerToRawData", Section->PointerToRawData); in printSections()
1118 W.printHex ("PointerToRelocations", Section->PointerToRelocations); in printSections()
1119 W.printHex ("PointerToLineNumbers", Section->PointerToLinenumbers); in printSections()
1120 W.printNumber("RelocationCount", Section->NumberOfRelocations); in printSections()
1121 W.printNumber("LineNumberCount", Section->NumberOfLinenumbers); in printSections()
1122 W.printFlags ("Characteristics", Section->Characteristics, in printSections()
1127 ListScope D(W, "Relocations"); in printSections()
1133 ListScope D(W, "Symbols"); in printSections()
1147 W.printBinaryBlock("SectionData", Data); in printSections()
1153 ListScope D(W, "Relocations"); in printRelocations()
1164 W.startLine() << "Section (" << SectionNumber << ") " << Name << " {\n"; in printRelocations()
1165 W.indent(); in printRelocations()
1173 W.unindent(); in printRelocations()
1174 W.startLine() << "}\n"; in printRelocations()
1194 DictScope Group(W, "Relocation"); in printRelocation()
1195 W.printHex("Offset", Offset); in printRelocation()
1196 W.printNumber("Type", RelocName, RelocType); in printRelocation()
1197 W.printString("Symbol", SymbolName.empty() ? "-" : SymbolName); in printRelocation()
1199 raw_ostream& OS = W.startLine(); in printRelocation()
1200 OS << W.hex(Offset) in printRelocation()
1208 ListScope Group(W, "Symbols"); in printSymbols()
1214 void COFFDumper::printDynamicSymbols() { ListScope Group(W, "DynamicSymbols"); } in printDynamicSymbols()
1235 DictScope D(W, "Symbol"); in printSymbol()
1240 W.startLine() << "Invalid section number: " << EC.message() << "\n"; in printSymbol()
1241 W.flush(); in printSymbol()
1255 W.printString("Name", SymbolName); in printSymbol()
1256 W.printNumber("Value", Symbol.getValue()); in printSymbol()
1257 W.printNumber("Section", SectionName, Symbol.getSectionNumber()); in printSymbol()
1258 W.printEnum ("BaseType", Symbol.getBaseType(), makeArrayRef(ImageSymType)); in printSymbol()
1259 W.printEnum ("ComplexType", Symbol.getComplexType(), in printSymbol()
1261 W.printEnum ("StorageClass", Symbol.getStorageClass(), in printSymbol()
1263 W.printNumber("AuxSymbolCount", Symbol.getNumberOfAuxSymbols()); in printSymbol()
1270 DictScope AS(W, "AuxFunctionDef"); in printSymbol()
1271 W.printNumber("TagIndex", Aux->TagIndex); in printSymbol()
1272 W.printNumber("TotalSize", Aux->TotalSize); in printSymbol()
1273 W.printHex("PointerToLineNumber", Aux->PointerToLinenumber); in printSymbol()
1274 W.printHex("PointerToNextFunction", Aux->PointerToNextFunction); in printSymbol()
1288 DictScope AS(W, "AuxWeakExternal"); in printSymbol()
1289 W.printNumber("Linked", LinkedName, Aux->TagIndex); in printSymbol()
1290 W.printEnum ("Search", Aux->Characteristics, in printSymbol()
1297 DictScope AS(W, "AuxFileRecord"); in printSymbol()
1301 W.printString("FileName", Name.rtrim(StringRef("\0", 1))); in printSymbol()
1309 DictScope AS(W, "AuxSectionDef"); in printSymbol()
1310 W.printNumber("Length", Aux->Length); in printSymbol()
1311 W.printNumber("RelocationCount", Aux->NumberOfRelocations); in printSymbol()
1312 W.printNumber("LineNumberCount", Aux->NumberOfLinenumbers); in printSymbol()
1313 W.printHex("Checksum", Aux->CheckSum); in printSymbol()
1314 W.printNumber("Number", AuxNumber); in printSymbol()
1315 W.printEnum("Selection", Aux->Selection, makeArrayRef(ImageCOMDATSelect)); in printSymbol()
1332 W.printNumber("AssocSection", AssocName, AuxNumber); in printSymbol()
1347 DictScope AS(W, "AuxCLRToken"); in printSymbol()
1348 W.printNumber("AuxType", Aux->AuxType); in printSymbol()
1349 W.printNumber("Reserved", Aux->Reserved); in printSymbol()
1350 W.printNumber("SymbolTableIndex", ReferredName, Aux->SymbolTableIndex); in printSymbol()
1353 W.startLine() << "<unhandled auxiliary record>\n"; in printSymbol()
1359 ListScope D(W, "UnwindInformation"); in printUnwindInfo()
1362 Win64EH::Dumper Dumper(W); in printUnwindInfo()
1374 ARM::WinEH::Decoder Decoder(W); in printUnwindInfo()
1379 W.printEnum("unsupported Image Machine", Obj->getMachine(), in printUnwindInfo()
1392 W.printNumber("Symbol", Sym, Ordinal); in printImportedSymbols()
1401 DictScope Import(W, "Import"); in printDelayImportedSymbols()
1406 W.printNumber("Symbol", Sym, Ordinal); in printDelayImportedSymbols()
1409 W.printHex("Address", Addr); in printDelayImportedSymbols()
1416 DictScope Import(W, "Import"); in printCOFFImports()
1419 W.printString("Name", Name); in printCOFFImports()
1422 W.printHex("ImportLookupTableRVA", Addr); in printCOFFImports()
1424 W.printHex("ImportAddressTableRVA", Addr); in printCOFFImports()
1430 DictScope Import(W, "DelayImport"); in printCOFFImports()
1433 W.printString("Name", Name); in printCOFFImports()
1436 W.printHex("Attributes", Table->Attributes); in printCOFFImports()
1437 W.printHex("ModuleHandle", Table->ModuleHandle); in printCOFFImports()
1438 W.printHex("ImportAddressTable", Table->DelayImportAddressTable); in printCOFFImports()
1439 W.printHex("ImportNameTable", Table->DelayImportNameTable); in printCOFFImports()
1440 W.printHex("BoundDelayImportTable", Table->BoundDelayImportTable); in printCOFFImports()
1441 W.printHex("UnloadDelayImportTable", Table->UnloadDelayImportTable); in printCOFFImports()
1448 DictScope Export(W, "Export"); in printCOFFExports()
1457 W.printNumber("Ordinal", Ordinal); in printCOFFExports()
1458 W.printString("Name", Name); in printCOFFExports()
1459 W.printHex("RVA", RVA); in printCOFFExports()
1474 W.printString("Directive(s)", Contents); in printCOFFDirectives()
1492 ListScope D(W, "BaseReloc"); in printCOFFBaseReloc()
1498 DictScope Import(W, "Entry"); in printCOFFBaseReloc()
1499 W.printString("Type", getBaseRelocTypeName(Type)); in printCOFFBaseReloc()
1500 W.printHex("Address", RVA); in printCOFFBaseReloc()