• Home
  • Raw
  • Download

Lines Matching full:io

19 #define ECase(X) IO.enumCase(Value, #X, COFF::X);
34 IO &IO, COFFYAML::COMDATType &Value) { in enumeration() argument
35 IO.enumCase(Value, "0", 0); in enumeration()
47 IO &IO, COFFYAML::WeakExternalCharacteristics &Value) { in enumeration() argument
48 IO.enumCase(Value, "0", 0); in enumeration()
55 IO &IO, COFFYAML::AuxSymbolType &Value) { in enumeration() argument
60 IO &IO, COFF::MachineTypes &Value) { in enumeration() argument
86 IO &IO, COFF::SymbolBaseType &Value) { in enumeration() argument
106 IO &IO, COFF::SymbolStorageClass &Value) { in enumeration() argument
137 IO &IO, COFF::SymbolComplexType &Value) { in enumeration() argument
145 IO &IO, COFF::RelocationTypeI386 &Value) { in enumeration() argument
160 IO &IO, COFF::RelocationTypeAMD64 &Value) { in enumeration() argument
181 IO &IO, COFF::RelocationTypesARM &Value) { in enumeration() argument
202 IO &IO, COFF::RelocationTypesARM64 &Value) { in enumeration() argument
224 IO &IO, COFF::WindowsSubsystem &Value) { in enumeration() argument
242 #define BCase(X) IO.bitSetCase(Value, #X, COFF::X);
244 IO &IO, COFF::Characteristics &Value) { in bitset() argument
263 IO &IO, COFF::SectionCharacteristics &Value) { in bitset() argument
289 IO &IO, COFF::DLLCharacteristics &Value) { in bitset() argument
307 NSectionSelectionType(IO &) in NSectionSelectionType()
309 NSectionSelectionType(IO &, uint8_t C) in NSectionSelectionType()
312 uint8_t denormalize(IO &) { return SelectionType; } in denormalize()
318 NWeakExternalCharacteristics(IO &) in NWeakExternalCharacteristics()
320 NWeakExternalCharacteristics(IO &, uint32_t C) in NWeakExternalCharacteristics()
323 uint32_t denormalize(IO &) { return Characteristics; } in denormalize()
329 NSectionCharacteristics(IO &) in NSectionCharacteristics()
331 NSectionCharacteristics(IO &, uint32_t C) in NSectionCharacteristics()
334 uint32_t denormalize(IO &) { return Characteristics; } in denormalize()
340 NAuxTokenType(IO &) in NAuxTokenType()
342 NAuxTokenType(IO &, uint8_t C) in NAuxTokenType()
345 uint32_t denormalize(IO &) { return AuxType; } in denormalize()
351 NStorageClass(IO &) : StorageClass(COFF::SymbolStorageClass(0)) {} in NStorageClass()
352 NStorageClass(IO &, uint8_t S) : StorageClass(COFF::SymbolStorageClass(S)) {} in NStorageClass()
354 uint8_t denormalize(IO &) { return StorageClass; } in denormalize()
360 NMachine(IO &) : Machine(COFF::MachineTypes(0)) {} in NMachine()
361 NMachine(IO &, uint16_t M) : Machine(COFF::MachineTypes(M)) {} in NMachine()
363 uint16_t denormalize(IO &) { return Machine; } in denormalize()
369 NHeaderCharacteristics(IO &) : Characteristics(COFF::Characteristics(0)) {} in NHeaderCharacteristics()
370 NHeaderCharacteristics(IO &, uint16_t C) in NHeaderCharacteristics()
373 uint16_t denormalize(IO &) { return Characteristics; } in denormalize()
380 NType(IO &) : Type(RelocType(0)) {} in NType()
381 NType(IO &, uint16_t T) : Type(RelocType(T)) {} in NType()
383 uint16_t denormalize(IO &) { return Type; } in denormalize()
389 NWindowsSubsystem(IO &) : Subsystem(COFF::WindowsSubsystem(0)) {} in NWindowsSubsystem()
390 NWindowsSubsystem(IO &, uint16_t C) : Subsystem(COFF::WindowsSubsystem(C)) {} in NWindowsSubsystem()
392 uint16_t denormalize(IO &) { return Subsystem; } in denormalize()
398 NDLLCharacteristics(IO &) : Characteristics(COFF::DLLCharacteristics(0)) {} in NDLLCharacteristics()
399 NDLLCharacteristics(IO &, uint16_t C) in NDLLCharacteristics()
402 uint16_t denormalize(IO &) { return Characteristics; } in denormalize()
409 void MappingTraits<COFFYAML::Relocation>::mapping(IO &IO, in mapping() argument
411 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping()
412 IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); in mapping()
413 IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); in mapping()
415 COFF::header &H = *static_cast<COFF::header *>(IO.getContext()); in mapping()
418 IO, Rel.Type); in mapping()
419 IO.mapRequired("Type", NT->Type); in mapping()
422 IO, Rel.Type); in mapping()
423 IO.mapRequired("Type", NT->Type); in mapping()
426 IO, Rel.Type); in mapping()
427 IO.mapRequired("Type", NT->Type); in mapping()
430 IO, Rel.Type); in mapping()
431 IO.mapRequired("Type", NT->Type); in mapping()
433 IO.mapRequired("Type", Rel.Type); in mapping()
437 void MappingTraits<COFF::DataDirectory>::mapping(IO &IO, in mapping() argument
439 IO.mapRequired("RelativeVirtualAddress", DD.RelativeVirtualAddress); in mapping()
440 IO.mapRequired("Size", DD.Size); in mapping()
443 void MappingTraits<COFFYAML::PEHeader>::mapping(IO &IO, in mapping() argument
445 MappingNormalization<NWindowsSubsystem, uint16_t> NWS(IO, in mapping()
448 IO, PH.Header.DLLCharacteristics); in mapping()
450 IO.mapRequired("AddressOfEntryPoint", PH.Header.AddressOfEntryPoint); in mapping()
451 IO.mapRequired("ImageBase", PH.Header.ImageBase); in mapping()
452 IO.mapRequired("SectionAlignment", PH.Header.SectionAlignment); in mapping()
453 IO.mapRequired("FileAlignment", PH.Header.FileAlignment); in mapping()
454 IO.mapRequired("MajorOperatingSystemVersion", in mapping()
456 IO.mapRequired("MinorOperatingSystemVersion", in mapping()
458 IO.mapRequired("MajorImageVersion", PH.Header.MajorImageVersion); in mapping()
459 IO.mapRequired("MinorImageVersion", PH.Header.MinorImageVersion); in mapping()
460 IO.mapRequired("MajorSubsystemVersion", PH.Header.MajorSubsystemVersion); in mapping()
461 IO.mapRequired("MinorSubsystemVersion", PH.Header.MinorSubsystemVersion); in mapping()
462 IO.mapRequired("Subsystem", NWS->Subsystem); in mapping()
463 IO.mapRequired("DLLCharacteristics", NDC->Characteristics); in mapping()
464 IO.mapRequired("SizeOfStackReserve", PH.Header.SizeOfStackReserve); in mapping()
465 IO.mapRequired("SizeOfStackCommit", PH.Header.SizeOfStackCommit); in mapping()
466 IO.mapRequired("SizeOfHeapReserve", PH.Header.SizeOfHeapReserve); in mapping()
467 IO.mapRequired("SizeOfHeapCommit", PH.Header.SizeOfHeapCommit); in mapping()
469 IO.mapOptional("ExportTable", PH.DataDirectories[COFF::EXPORT_TABLE]); in mapping()
470 IO.mapOptional("ImportTable", PH.DataDirectories[COFF::IMPORT_TABLE]); in mapping()
471 IO.mapOptional("ResourceTable", PH.DataDirectories[COFF::RESOURCE_TABLE]); in mapping()
472 IO.mapOptional("ExceptionTable", PH.DataDirectories[COFF::EXCEPTION_TABLE]); in mapping()
473 IO.mapOptional("CertificateTable", PH.DataDirectories[COFF::CERTIFICATE_TABLE]); in mapping()
474 IO.mapOptional("BaseRelocationTable", in mapping()
476 IO.mapOptional("Debug", PH.DataDirectories[COFF::DEBUG_DIRECTORY]); in mapping()
477 IO.mapOptional("Architecture", PH.DataDirectories[COFF::ARCHITECTURE]); in mapping()
478 IO.mapOptional("GlobalPtr", PH.DataDirectories[COFF::GLOBAL_PTR]); in mapping()
479 IO.mapOptional("TlsTable", PH.DataDirectories[COFF::TLS_TABLE]); in mapping()
480 IO.mapOptional("LoadConfigTable", in mapping()
482 IO.mapOptional("BoundImport", PH.DataDirectories[COFF::BOUND_IMPORT]); in mapping()
483 IO.mapOptional("IAT", PH.DataDirectories[COFF::IAT]); in mapping()
484 IO.mapOptional("DelayImportDescriptor", in mapping()
486 IO.mapOptional("ClrRuntimeHeader", in mapping()
490 void MappingTraits<COFF::header>::mapping(IO &IO, COFF::header &H) { in mapping() argument
491 MappingNormalization<NMachine, uint16_t> NM(IO, H.Machine); in mapping()
492 MappingNormalization<NHeaderCharacteristics, uint16_t> NC(IO, in mapping()
495 IO.mapRequired("Machine", NM->Machine); in mapping()
496 IO.mapOptional("Characteristics", NC->Characteristics); in mapping()
497 IO.setContext(static_cast<void *>(&H)); in mapping()
501 IO &IO, COFF::AuxiliaryFunctionDefinition &AFD) { in mapping() argument
502 IO.mapRequired("TagIndex", AFD.TagIndex); in mapping()
503 IO.mapRequired("TotalSize", AFD.TotalSize); in mapping()
504 IO.mapRequired("PointerToLinenumber", AFD.PointerToLinenumber); in mapping()
505 IO.mapRequired("PointerToNextFunction", AFD.PointerToNextFunction); in mapping()
509 IO &IO, COFF::AuxiliarybfAndefSymbol &AAS) { in mapping() argument
510 IO.mapRequired("Linenumber", AAS.Linenumber); in mapping()
511 IO.mapRequired("PointerToNextFunction", AAS.PointerToNextFunction); in mapping()
515 IO &IO, COFF::AuxiliaryWeakExternal &AWE) { in mapping() argument
517 IO, AWE.Characteristics); in mapping()
518 IO.mapRequired("TagIndex", AWE.TagIndex); in mapping()
519 IO.mapRequired("Characteristics", NWEC->Characteristics); in mapping()
523 IO &IO, COFF::AuxiliarySectionDefinition &ASD) { in mapping() argument
525 IO, ASD.Selection); in mapping()
527 IO.mapRequired("Length", ASD.Length); in mapping()
528 IO.mapRequired("NumberOfRelocations", ASD.NumberOfRelocations); in mapping()
529 IO.mapRequired("NumberOfLinenumbers", ASD.NumberOfLinenumbers); in mapping()
530 IO.mapRequired("CheckSum", ASD.CheckSum); in mapping()
531 IO.mapRequired("Number", ASD.Number); in mapping()
532 IO.mapOptional("Selection", NSST->SelectionType, COFFYAML::COMDATType(0)); in mapping()
536 IO &IO, COFF::AuxiliaryCLRToken &ACT) { in mapping() argument
537 MappingNormalization<NAuxTokenType, uint8_t> NATT(IO, ACT.AuxType); in mapping()
538 IO.mapRequired("AuxType", NATT->AuxType); in mapping()
539 IO.mapRequired("SymbolTableIndex", ACT.SymbolTableIndex); in mapping()
542 void MappingTraits<COFFYAML::Symbol>::mapping(IO &IO, COFFYAML::Symbol &S) { in mapping() argument
543 MappingNormalization<NStorageClass, uint8_t> NS(IO, S.Header.StorageClass); in mapping()
545 IO.mapRequired("Name", S.Name); in mapping()
546 IO.mapRequired("Value", S.Header.Value); in mapping()
547 IO.mapRequired("SectionNumber", S.Header.SectionNumber); in mapping()
548 IO.mapRequired("SimpleType", S.SimpleType); in mapping()
549 IO.mapRequired("ComplexType", S.ComplexType); in mapping()
550 IO.mapRequired("StorageClass", NS->StorageClass); in mapping()
551 IO.mapOptional("FunctionDefinition", S.FunctionDefinition); in mapping()
552 IO.mapOptional("bfAndefSymbol", S.bfAndefSymbol); in mapping()
553 IO.mapOptional("WeakExternal", S.WeakExternal); in mapping()
554 IO.mapOptional("File", S.File, StringRef()); in mapping()
555 IO.mapOptional("SectionDefinition", S.SectionDefinition); in mapping()
556 IO.mapOptional("CLRToken", S.CLRToken); in mapping()
559 void MappingTraits<COFFYAML::Section>::mapping(IO &IO, COFFYAML::Section &Sec) { in mapping() argument
561 IO, Sec.Header.Characteristics); in mapping()
562 IO.mapRequired("Name", Sec.Name); in mapping()
563 IO.mapRequired("Characteristics", NC->Characteristics); in mapping()
564 IO.mapOptional("VirtualAddress", Sec.Header.VirtualAddress, 0U); in mapping()
565 IO.mapOptional("VirtualSize", Sec.Header.VirtualSize, 0U); in mapping()
566 IO.mapOptional("Alignment", Sec.Alignment, 0U); in mapping()
571 IO.mapOptional("SectionData", Sec.SectionData); in mapping()
573 IO.mapOptional("Subsections", Sec.DebugS); in mapping()
575 IO.mapOptional("Types", Sec.DebugT); in mapping()
577 IO.mapOptional("PrecompTypes", Sec.DebugP); in mapping()
579 IO.mapOptional("GlobalHashes", Sec.DebugH); in mapping()
585 IO.mapOptional("SizeOfRawData", Sec.Header.SizeOfRawData); in mapping()
587 IO.mapOptional("Relocations", Sec.Relocations); in mapping()
590 void MappingTraits<COFFYAML::Object>::mapping(IO &IO, COFFYAML::Object &Obj) { in mapping() argument
591 IO.mapTag("!COFF", true); in mapping()
592 IO.mapOptional("OptionalHeader", Obj.OptionalHeader); in mapping()
593 IO.mapRequired("header", Obj.Header); in mapping()
594 IO.mapRequired("sections", Obj.Sections); in mapping()
595 IO.mapRequired("symbols", Obj.Symbols); in mapping()