Lines Matching refs:IO

20 #define ECase(X) IO.enumCase(Value, #X, COFF::X);
35 IO &IO, COFFYAML::COMDATType &Value) { in enumeration() argument
36 IO.enumCase(Value, "0", 0); in enumeration()
48 IO &IO, COFFYAML::WeakExternalCharacteristics &Value) { in enumeration() argument
49 IO.enumCase(Value, "0", 0); in enumeration()
56 IO &IO, COFFYAML::AuxSymbolType &Value) { in enumeration() argument
61 IO &IO, COFF::MachineTypes &Value) { in enumeration() argument
87 IO &IO, COFF::SymbolBaseType &Value) { in enumeration() argument
107 IO &IO, COFF::SymbolStorageClass &Value) { in enumeration() argument
138 IO &IO, COFF::SymbolComplexType &Value) { in enumeration() argument
146 IO &IO, COFF::RelocationTypeI386 &Value) { in enumeration() argument
161 IO &IO, COFF::RelocationTypeAMD64 &Value) { in enumeration() argument
182 IO &IO, COFF::RelocationTypesARM &Value) { in enumeration() argument
201 IO &IO, COFF::RelocationTypesARM64 &Value) { in enumeration() argument
222 IO &IO, COFF::WindowsSubsystem &Value) { in enumeration() argument
240 #define BCase(X) IO.bitSetCase(Value, #X, COFF::X);
242 IO &IO, COFF::Characteristics &Value) { in bitset() argument
261 IO &IO, COFF::SectionCharacteristics &Value) { in bitset() argument
287 IO &IO, COFF::DLLCharacteristics &Value) { in bitset() argument
305 NSectionSelectionType(IO &) in NSectionSelectionType()
307 NSectionSelectionType(IO &, uint8_t C) in NSectionSelectionType()
310 uint8_t denormalize(IO &) { return SelectionType; } in denormalize()
316 NWeakExternalCharacteristics(IO &) in NWeakExternalCharacteristics()
318 NWeakExternalCharacteristics(IO &, uint32_t C) in NWeakExternalCharacteristics()
321 uint32_t denormalize(IO &) { return Characteristics; } in denormalize()
327 NSectionCharacteristics(IO &) in NSectionCharacteristics()
329 NSectionCharacteristics(IO &, uint32_t C) in NSectionCharacteristics()
332 uint32_t denormalize(IO &) { return Characteristics; } in denormalize()
338 NAuxTokenType(IO &) in NAuxTokenType()
340 NAuxTokenType(IO &, uint8_t C) in NAuxTokenType()
343 uint32_t denormalize(IO &) { return AuxType; } in denormalize()
349 NStorageClass(IO &) : StorageClass(COFF::SymbolStorageClass(0)) {} in NStorageClass()
350 NStorageClass(IO &, uint8_t S) : StorageClass(COFF::SymbolStorageClass(S)) {} in NStorageClass()
352 uint8_t denormalize(IO &) { return StorageClass; } in denormalize()
358 NMachine(IO &) : Machine(COFF::MachineTypes(0)) {} in NMachine()
359 NMachine(IO &, uint16_t M) : Machine(COFF::MachineTypes(M)) {} in NMachine()
361 uint16_t denormalize(IO &) { return Machine; } in denormalize()
367 NHeaderCharacteristics(IO &) : Characteristics(COFF::Characteristics(0)) {} in NHeaderCharacteristics()
368 NHeaderCharacteristics(IO &, uint16_t C) in NHeaderCharacteristics()
371 uint16_t denormalize(IO &) { return Characteristics; } in denormalize()
378 NType(IO &) : Type(RelocType(0)) {} in NType()
379 NType(IO &, uint16_t T) : Type(RelocType(T)) {} in NType()
381 uint16_t denormalize(IO &) { return Type; } in denormalize()
387 NWindowsSubsystem(IO &) : Subsystem(COFF::WindowsSubsystem(0)) {} in NWindowsSubsystem()
388 NWindowsSubsystem(IO &, uint16_t C) : Subsystem(COFF::WindowsSubsystem(C)) {} in NWindowsSubsystem()
390 uint16_t denormalize(IO &) { return Subsystem; } in denormalize()
396 NDLLCharacteristics(IO &) : Characteristics(COFF::DLLCharacteristics(0)) {} in NDLLCharacteristics()
397 NDLLCharacteristics(IO &, uint16_t C) in NDLLCharacteristics()
400 uint16_t denormalize(IO &) { return Characteristics; } in denormalize()
407 void MappingTraits<COFFYAML::Relocation>::mapping(IO &IO, in mapping() argument
409 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping()
410 IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); in mapping()
411 IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); in mapping()
413 COFF::header &H = *static_cast<COFF::header *>(IO.getContext()); in mapping()
416 IO, Rel.Type); in mapping()
417 IO.mapRequired("Type", NT->Type); in mapping()
420 IO, Rel.Type); in mapping()
421 IO.mapRequired("Type", NT->Type); in mapping()
424 IO, Rel.Type); in mapping()
425 IO.mapRequired("Type", NT->Type); in mapping()
428 IO, Rel.Type); in mapping()
429 IO.mapRequired("Type", NT->Type); in mapping()
431 IO.mapRequired("Type", Rel.Type); in mapping()
435 void MappingTraits<COFF::DataDirectory>::mapping(IO &IO, in mapping() argument
437 IO.mapRequired("RelativeVirtualAddress", DD.RelativeVirtualAddress); in mapping()
438 IO.mapRequired("Size", DD.Size); in mapping()
441 void MappingTraits<COFFYAML::PEHeader>::mapping(IO &IO, in mapping() argument
443 MappingNormalization<NWindowsSubsystem, uint16_t> NWS(IO, in mapping()
446 IO, PH.Header.DLLCharacteristics); in mapping()
448 IO.mapRequired("AddressOfEntryPoint", PH.Header.AddressOfEntryPoint); in mapping()
449 IO.mapRequired("ImageBase", PH.Header.ImageBase); in mapping()
450 IO.mapRequired("SectionAlignment", PH.Header.SectionAlignment); in mapping()
451 IO.mapRequired("FileAlignment", PH.Header.FileAlignment); in mapping()
452 IO.mapRequired("MajorOperatingSystemVersion", in mapping()
454 IO.mapRequired("MinorOperatingSystemVersion", in mapping()
456 IO.mapRequired("MajorImageVersion", PH.Header.MajorImageVersion); in mapping()
457 IO.mapRequired("MinorImageVersion", PH.Header.MinorImageVersion); in mapping()
458 IO.mapRequired("MajorSubsystemVersion", PH.Header.MajorSubsystemVersion); in mapping()
459 IO.mapRequired("MinorSubsystemVersion", PH.Header.MinorSubsystemVersion); in mapping()
460 IO.mapRequired("Subsystem", NWS->Subsystem); in mapping()
461 IO.mapRequired("DLLCharacteristics", NDC->Characteristics); in mapping()
462 IO.mapRequired("SizeOfStackReserve", PH.Header.SizeOfStackReserve); in mapping()
463 IO.mapRequired("SizeOfStackCommit", PH.Header.SizeOfStackCommit); in mapping()
464 IO.mapRequired("SizeOfHeapReserve", PH.Header.SizeOfHeapReserve); in mapping()
465 IO.mapRequired("SizeOfHeapCommit", PH.Header.SizeOfHeapCommit); in mapping()
467 IO.mapOptional("ExportTable", PH.DataDirectories[COFF::EXPORT_TABLE]); in mapping()
468 IO.mapOptional("ImportTable", PH.DataDirectories[COFF::IMPORT_TABLE]); in mapping()
469 IO.mapOptional("ResourceTable", PH.DataDirectories[COFF::RESOURCE_TABLE]); in mapping()
470 IO.mapOptional("ExceptionTable", PH.DataDirectories[COFF::EXCEPTION_TABLE]); in mapping()
471 IO.mapOptional("CertificateTable", PH.DataDirectories[COFF::CERTIFICATE_TABLE]); in mapping()
472 IO.mapOptional("BaseRelocationTable", in mapping()
474 IO.mapOptional("Debug", PH.DataDirectories[COFF::DEBUG_DIRECTORY]); in mapping()
475 IO.mapOptional("Architecture", PH.DataDirectories[COFF::ARCHITECTURE]); in mapping()
476 IO.mapOptional("GlobalPtr", PH.DataDirectories[COFF::GLOBAL_PTR]); in mapping()
477 IO.mapOptional("TlsTable", PH.DataDirectories[COFF::TLS_TABLE]); in mapping()
478 IO.mapOptional("LoadConfigTable", in mapping()
480 IO.mapOptional("BoundImport", PH.DataDirectories[COFF::BOUND_IMPORT]); in mapping()
481 IO.mapOptional("IAT", PH.DataDirectories[COFF::IAT]); in mapping()
482 IO.mapOptional("DelayImportDescriptor", in mapping()
484 IO.mapOptional("ClrRuntimeHeader", in mapping()
488 void MappingTraits<COFF::header>::mapping(IO &IO, COFF::header &H) { in mapping() argument
489 MappingNormalization<NMachine, uint16_t> NM(IO, H.Machine); in mapping()
490 MappingNormalization<NHeaderCharacteristics, uint16_t> NC(IO, in mapping()
493 IO.mapRequired("Machine", NM->Machine); in mapping()
494 IO.mapOptional("Characteristics", NC->Characteristics); in mapping()
495 IO.setContext(static_cast<void *>(&H)); in mapping()
499 IO &IO, COFF::AuxiliaryFunctionDefinition &AFD) { in mapping() argument
500 IO.mapRequired("TagIndex", AFD.TagIndex); in mapping()
501 IO.mapRequired("TotalSize", AFD.TotalSize); in mapping()
502 IO.mapRequired("PointerToLinenumber", AFD.PointerToLinenumber); in mapping()
503 IO.mapRequired("PointerToNextFunction", AFD.PointerToNextFunction); in mapping()
507 IO &IO, COFF::AuxiliarybfAndefSymbol &AAS) { in mapping() argument
508 IO.mapRequired("Linenumber", AAS.Linenumber); in mapping()
509 IO.mapRequired("PointerToNextFunction", AAS.PointerToNextFunction); in mapping()
513 IO &IO, COFF::AuxiliaryWeakExternal &AWE) { in mapping() argument
515 IO, AWE.Characteristics); in mapping()
516 IO.mapRequired("TagIndex", AWE.TagIndex); in mapping()
517 IO.mapRequired("Characteristics", NWEC->Characteristics); in mapping()
521 IO &IO, COFF::AuxiliarySectionDefinition &ASD) { in mapping() argument
523 IO, ASD.Selection); in mapping()
525 IO.mapRequired("Length", ASD.Length); in mapping()
526 IO.mapRequired("NumberOfRelocations", ASD.NumberOfRelocations); in mapping()
527 IO.mapRequired("NumberOfLinenumbers", ASD.NumberOfLinenumbers); in mapping()
528 IO.mapRequired("CheckSum", ASD.CheckSum); in mapping()
529 IO.mapRequired("Number", ASD.Number); in mapping()
530 IO.mapOptional("Selection", NSST->SelectionType, COFFYAML::COMDATType(0)); in mapping()
534 IO &IO, COFF::AuxiliaryCLRToken &ACT) { in mapping() argument
535 MappingNormalization<NAuxTokenType, uint8_t> NATT(IO, ACT.AuxType); in mapping()
536 IO.mapRequired("AuxType", NATT->AuxType); in mapping()
537 IO.mapRequired("SymbolTableIndex", ACT.SymbolTableIndex); in mapping()
540 void MappingTraits<COFFYAML::Symbol>::mapping(IO &IO, COFFYAML::Symbol &S) { in mapping() argument
541 MappingNormalization<NStorageClass, uint8_t> NS(IO, S.Header.StorageClass); in mapping()
543 IO.mapRequired("Name", S.Name); in mapping()
544 IO.mapRequired("Value", S.Header.Value); in mapping()
545 IO.mapRequired("SectionNumber", S.Header.SectionNumber); in mapping()
546 IO.mapRequired("SimpleType", S.SimpleType); in mapping()
547 IO.mapRequired("ComplexType", S.ComplexType); in mapping()
548 IO.mapRequired("StorageClass", NS->StorageClass); in mapping()
549 IO.mapOptional("FunctionDefinition", S.FunctionDefinition); in mapping()
550 IO.mapOptional("bfAndefSymbol", S.bfAndefSymbol); in mapping()
551 IO.mapOptional("WeakExternal", S.WeakExternal); in mapping()
552 IO.mapOptional("File", S.File, StringRef()); in mapping()
553 IO.mapOptional("SectionDefinition", S.SectionDefinition); in mapping()
554 IO.mapOptional("CLRToken", S.CLRToken); in mapping()
557 void MappingTraits<COFFYAML::Section>::mapping(IO &IO, COFFYAML::Section &Sec) { in mapping() argument
559 IO, Sec.Header.Characteristics); in mapping()
560 IO.mapRequired("Name", Sec.Name); in mapping()
561 IO.mapRequired("Characteristics", NC->Characteristics); in mapping()
562 IO.mapOptional("VirtualAddress", Sec.Header.VirtualAddress, 0U); in mapping()
563 IO.mapOptional("VirtualSize", Sec.Header.VirtualSize, 0U); in mapping()
564 IO.mapOptional("Alignment", Sec.Alignment, 0U); in mapping()
569 IO.mapOptional("SectionData", Sec.SectionData); in mapping()
571 IO.mapOptional("Subsections", Sec.DebugS); in mapping()
573 IO.mapOptional("Types", Sec.DebugT); in mapping()
575 IO.mapOptional("PrecompTypes", Sec.DebugP); in mapping()
577 IO.mapOptional("GlobalHashes", Sec.DebugH); in mapping()
579 IO.mapOptional("Relocations", Sec.Relocations); in mapping()
582 void MappingTraits<COFFYAML::Object>::mapping(IO &IO, COFFYAML::Object &Obj) { in mapping() argument
583 IO.mapTag("!COFF", true); in mapping()
584 IO.mapOptional("OptionalHeader", Obj.OptionalHeader); in mapping()
585 IO.mapRequired("header", Obj.Header); in mapping()
586 IO.mapRequired("sections", Obj.Sections); in mapping()
587 IO.mapRequired("symbols", Obj.Symbols); in mapping()