29 "Unsupported file format.");
42 if (*MaybeName != *SectionName)
48 return Contents.takeError();
53 Remark &RemarkLinker::keep(std::unique_ptr<Remark>
Remark) {
55 auto Inserted = Remarks.insert(std::move(Remark));
56 return **Inserted.first;
60 PrependPath = PrependPathIn;
71 RemarkFormat = *ParserFormat;
76 *RemarkFormat, Buffer,
None,
97 keep(std::move(*Next));
116 std::move(const_cast<StringTable &>(StrTab)));
117 if (!MaybeSerializer)
120 std::unique_ptr<remarks::RemarkSerializer> Serializer =
121 std::move(*MaybeSerializer);
This class represents lattice values for constants.
This class is the base class for all object file types.
Error takeError()
Take ownership of the stored error.
Tagged union holding either a T or a Error.
section_iterator_range sections() const
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
void consumeError(Error Err)
Consume a Error without doing anything.
static ErrorSuccess success()
Create a success value.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
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"))
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.
This is a value type class that represents a single section in the list of sections in the object fil...