20 assert(!IO.getContext() &&
"The IO context is initialized already");
22 IO.mapTag(
"!Arch",
true);
23 IO.mapOptional(
"Magic",
A.Magic,
"!<arch>\n");
24 IO.mapOptional(
"Members",
A.Members);
25 IO.mapOptional(
"Content",
A.Content);
26 IO.setContext(
nullptr);
31 if (
A.Members &&
A.Content)
32 return "\"Content\" and \"Members\" cannot be used together";
38 assert(IO.getContext() &&
"The IO context is not initialized");
39 for (
auto &
P :
E.Fields)
40 IO.mapOptional(
P.first.data(),
P.second.Value,
P.second.DefaultValue);
41 IO.mapOptional(
"Content",
E.Content);
42 IO.mapOptional(
"PaddingByte",
E.PaddingByte);
48 for (
auto &
P :
C.Fields)
49 if (
P.second.Value.size() >
P.second.MaxLength)
50 return (
"the maximum length of \"" +
P.first +
"\" field is " +
This file declares classes for handling the YAML representation of archives.
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.