35 "Unsupported file format.");
54 return Contents.takeError();
56 return std::optional<StringRef>{};
59Remark &RemarkLinker::keep(std::unique_ptr<Remark>
Remark) {
61 auto Inserted = Remarks.insert(std::move(
Remark));
62 return **Inserted.first;
66 PrependPath = std::string(PrependPathIn);
74 RemarkFormat = *ParserFormat;
79 *RemarkFormat, Buffer, std::nullopt,
80 PrependPath ? std::optional<StringRef>(
StringRef(*PrependPath))
81 : std::optional<StringRef>());
99 if (shouldKeepRemark(**Next))
100 keep(std::move(*Next));
106 std::optional<Format> RemarkFormat) {
112 if (std::optional<StringRef> Section = *SectionOrErr)
113 return link(*Section, RemarkFormat);
121 if (!MaybeSerializer)
124 std::unique_ptr<remarks::RemarkSerializer> Serializer =
125 std::move(*MaybeSerializer);
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Tagged union holding either a T or a Error.
Error takeError()
Take ownership of the stored error.
StringRef - Represent a constant reference to a string, i.e.
This class is the base class for all object file types.
section_iterator_range sections() const
This is a value type class that represents a single section in the list of sections in the object fil...
This class implements an extremely fast bulk output stream that can only output to a stream.
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.
void consumeError(Error Err)
Consume a Error without doing anything.