LLVM: include/llvm/ObjectYAML/ArchiveYAML.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14#ifndef LLVM_OBJECTYAML_ARCHIVEYAML_H
15#define LLVM_OBJECTYAML_ARCHIVEYAML_H
16
20#include
21
22namespace llvm {
24
35
37 Fields["Name"] = {"", 16};
38 Fields["LastModified"] = {"0", 12};
39 Fields["UID"] = {"0", 6};
40 Fields["GID"] = {"0", 6};
41 Fields["AccessMode"] = {"0", 8};
42 Fields["Size"] = {"0", 10};
43 Fields["Terminator"] = {"`\n", 2};
44 }
45
47
48 std::optionalyaml::BinaryRef Content;
50 };
51
53 std::optional<std::vector> Members;
54 std::optionalyaml::BinaryRef Content;
55};
56
57}
58}
59
61
62namespace llvm {
63namespace yaml {
64
69
74
75}
76}
77
78#endif
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
This file implements a map that provides insertion order iteration.
#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)
Utility for declaring that a std::vector of a particular type should be considered a YAML sequence.
This class implements a map that also provides access to all stored values in a deterministic order.
StringRef - Represent a constant reference to a string, i.e.
Definition ArchiveYAML.h:23
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
@ Default
The result values are uniform if and only if all operands are uniform.
unsigned MaxLength
Definition ArchiveYAML.h:33
StringRef Value
Definition ArchiveYAML.h:31
Field(StringRef Default, unsigned Length)
Definition ArchiveYAML.h:29
StringRef DefaultValue
Definition ArchiveYAML.h:32
Definition ArchiveYAML.h:26
std::optional< yaml::BinaryRef > Content
Definition ArchiveYAML.h:48
Child()
Definition ArchiveYAML.h:36
std::optional< llvm::yaml::Hex8 > PaddingByte
Definition ArchiveYAML.h:49
MapVector< StringRef, Field > Fields
Definition ArchiveYAML.h:46
Definition ArchiveYAML.h:25
std::optional< yaml::BinaryRef > Content
Definition ArchiveYAML.h:54
StringRef Magic
Definition ArchiveYAML.h:52
std::optional< std::vector< Child > > Members
Definition ArchiveYAML.h:53
static std::string validate(IO &, ArchYAML::Archive &A)
static void mapping(IO &IO, ArchYAML::Archive &A)
static void mapping(IO &IO, ArchYAML::Archive::Child &C)
static std::string validate(IO &, ArchYAML::Archive::Child &C)
This class should be specialized by any type that needs to be converted to/from a YAML mapping.