26 "Unknown remark serializer format.");
28 return std::make_unique<YAMLRemarkSerializer>(
OS, Mode);
29 case Format::YAMLStrTab:
30 return std::make_unique<YAMLStrTabRemarkSerializer>(
OS, Mode);
31 case Format::Bitstream:
32 return std::make_unique<BitstreamRemarkSerializer>(
OS, Mode);
43 "Unknown remark serializer format.");
45 return std::make_unique<YAMLRemarkSerializer>(
OS, Mode, std::move(StrTab));
46 case Format::YAMLStrTab:
47 return std::make_unique<YAMLStrTabRemarkSerializer>(
OS, Mode,
49 case Format::Bitstream:
50 return std::make_unique<BitstreamRemarkSerializer>(
OS, Mode,
Tagged union holding either a T or a Error.
This class implements an extremely fast bulk output stream that can only output to a stream.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.
cl::opt< std::string > RemarksFormat("lto-pass-remarks-format", cl::desc("The format used for serializing remarks (default: YAML)"), cl::value_desc("format"), cl::init("yaml"))
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.