23 switch (RemarksFormat) {
26 "Unknown remark serializer format.");
28 return std::make_unique<YAMLRemarkSerializer>(OS,
Mode);
30 return std::make_unique<YAMLStrTabRemarkSerializer>(OS,
Mode);
32 return std::make_unique<BitstreamRemarkSerializer>(OS,
Mode);
40 switch (RemarksFormat) {
43 "Unknown remark serializer format.");
45 return std::make_unique<YAMLRemarkSerializer>(OS,
Mode, std::move(StrTab));
47 return std::make_unique<YAMLStrTabRemarkSerializer>(OS,
Mode,
50 return std::make_unique<BitstreamRemarkSerializer>(OS,
Mode,
This class represents lattice values for constants.
Tagged union holding either a T or a Error.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
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"))
This class implements an extremely fast bulk output stream that can only output to a stream...
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.