File indexing completed on 2026-05-10 08:44:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef LLVM_OBJECTYAML_GOFFYAML_H
0014 #define LLVM_OBJECTYAML_GOFFYAML_H
0015
0016 #include "llvm/ADT/StringRef.h"
0017 #include "llvm/BinaryFormat/GOFF.h"
0018 #include "llvm/ObjectYAML/YAML.h"
0019 #include <cstdint>
0020 #include <vector>
0021
0022 namespace llvm {
0023
0024
0025
0026 namespace GOFFYAML {
0027
0028 struct FileHeader {
0029 uint32_t TargetEnvironment = 0;
0030 uint32_t TargetOperatingSystem = 0;
0031 uint16_t CCSID = 0;
0032 StringRef CharacterSetName;
0033 StringRef LanguageProductIdentifier;
0034 uint32_t ArchitectureLevel = 0;
0035 std::optional<uint16_t> InternalCCSID;
0036 std::optional<uint8_t> TargetSoftwareEnvironment;
0037 };
0038
0039 struct Object {
0040 FileHeader Header;
0041 Object();
0042 };
0043 }
0044 }
0045
0046 LLVM_YAML_DECLARE_MAPPING_TRAITS(GOFFYAML::FileHeader)
0047 LLVM_YAML_DECLARE_MAPPING_TRAITS(GOFFYAML::Object)
0048
0049 #endif