Movatterモバイル変換


[0]ホーム

URL:


LLVM 20.0.0git
Error.cpp
Go to the documentation of this file.
1//===- llvm/Testing/Support/Error.cpp -------------------------------------===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8
9#include "llvm/Testing/Support/Error.h"
10
11using namespacellvm;
12
13llvm::detail::ErrorHolderllvm::detail::TakeError(llvm::Error Err) {
14 std::vector<std::shared_ptr<ErrorInfoBase>> Infos;
15handleAllErrors(std::move(Err),
16 [&Infos](std::unique_ptr<ErrorInfoBase>Info) {
17 Infos.emplace_back(std::move(Info));
18 });
19return {std::move(Infos)};
20}
Info
Analysis containing CSE Info
Definition:CSEInfo.cpp:27
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition:Error.h:160
Error.h
llvm::detail::TakeError
ErrorHolder TakeError(Error Err)
Definition:Error.cpp:13
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:AddressRanges.h:18
llvm::handleAllErrors
void handleAllErrors(Error E, HandlerTs &&... Handlers)
Behaves the same as handleErrors, except that by contract all errors must be handled by the given han...
Definition:Error.h:977
llvm::detail::ErrorHolder
Definition:SupportHelpers.h:25

Generated on Thu Jul 17 2025 16:14:39 for LLVM by doxygen 1.9.6
[8]ページ先頭

©2009-2025 Movatter.jp