22 .
Cases(
"",
"yaml", Format::YAML)
23 .
Case(
"yaml-strtab", Format::YAMLStrTab)
24 .
Case(
"bitstream", Format::Bitstream)
27 if (Result == Format::Unknown)
29 "Unknown remark format: '%s'",
43 if (Result == Format::Unknown)
45 "Unknown remark magic: '%s'", MagicStr.
data());
This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...
Tagged union holding either a T or a Error.
StringRef - Represent a constant reference to a string, i.e.
constexpr const char * data() const
data - Get a pointer to the start of the string (which may not be null terminated).
A switch()-like statement whose cases are string literals.
StringSwitch & Case(StringLiteral S, T Value)
StringSwitch & StartsWith(StringLiteral S, T Value)
StringSwitch & Cases(StringLiteral S0, StringLiteral S1, T Value)
This is an optimization pass for GlobalISel generic memory operations.
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.