LLVM: lib/XRay/LogBuilderConsumer.cpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
9
10using namespace llvm;
12
14 if (!R)
16 std::make_error_code(std::errc::invalid_argument),
17 "Must not call RecordConsumer::consume() with a null pointer.");
18 Records.push_back(std::move(R));
20}
21
23 if (!R)
25 std::make_error_code(std::errc::invalid_argument),
26 "Must not call RecordConsumer::consume() with a null pointer.");
27
28
29
31 for (auto *V : Visitors)
32 Result = joinErrors(std::move(Result), R->apply(*V));
33 return Result;
34}
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Error consume(std::unique_ptr< Record > R) override
Definition LogBuilderConsumer.cpp:13
Error consume(std::unique_ptr< Record > R) override
Definition LogBuilderConsumer.cpp:22
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.
Error joinErrors(Error E1, Error E2)
Concatenate errors.