1//===- llvm/Testing/Support/Error.cpp -------------------------------------===// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7//===----------------------------------------------------------------------===// 14 std::vector<std::shared_ptr<ErrorInfoBase>> Infos;
16 [&Infos](std::unique_ptr<ErrorInfoBase>
Info) {
17 Infos.emplace_back(std::move(
Info));
19return {std::move(Infos)};
Analysis containing CSE Info
Lightweight error class with error context and mandatory checking.
ErrorHolder TakeError(Error Err)
This is an optimization pass for GlobalISel generic memory operations.
void handleAllErrors(Error E, HandlerTs &&... Handlers)
Behaves the same as handleErrors, except that by contract all errors must be handled by the given han...